Commit bc673f54 authored by Soumya Sree Sridharala's avatar Soumya Sree Sridharala
Browse files

Update EmployeeMockTest.java

parent a0e1761c
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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());
}
}
......
Supports Markdown
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