Update EmployeeMockTest.java

parent a0e1761c
......@@ -17,12 +17,12 @@ public class EmployeeMockTest {
@BeforeEach
public void setUpMock(){
mockEmployee = Mockito.mock(Employee.class);
Mockito.when(mockEmployee.getFirstName()).thenReturn("Employee from Mock");
Mockito.when(mockEmployee.getFirstName()).thenReturn("Soumya sree");
}
@Test
public void printMessageTest(){
Assertions.assertEquals("Employee from Mock", mockEmployee.getFirstName());
Assertions.assertEquals("Soumya sree", mockEmployee.getFirstName());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment