Getting Started with Mockito @Mock and @InjectMocks
| Jun 05, 2019In this article we see the meaning of @Mock and @InjectMock annotations. Below the class we are going to Mock. @Mock annotation Here the class we are going to test. Now the test case. As you can see mocked instance mockedService is passed as constructor argument to declared instance of ServiceToTest. @InjectMock annotation Below the […]
Read More →