A temporary Mockito extension. Will be removed once Mockito creates their own.
- Supports
@Mock
,@Spy
, and@Captor
annotated fields. - Supports
@Mock
andArgumentCaptor
typed parameters.
@ExtendWith(MockitoExtension.class)
public class SomeTest {
@Mock Function<String, String> stringTransform; // Will be instantiated.
@Test
void testTransform(ArgumentCaptor<String> stringCaptor /* Will be instantiated. */) {
}
}