Snippets tagged “inject-mocks”
1 snippet uses this tag.
- Difference between @Mock and @InjectMocksJava
In the context of testing with the Mockito framework, the @Mock annotation is used to create a mock object of a class or interface, and the @InjectMocks annotation is used to inject the mock objects into a test class.