The MockitoExtension does not support the @Captor annotation on method parameters or constructor parameters…
The MockitoExtension does not support the @Captor annotation on method parameters or constructor parameters…: a task in LegoFlow-SWE (Harbor dataset). Observed behavior When a JUnit 5 test class uses @ExtendWith(MockitoExtension.class) , annotating a test method parameter with @Captor : java @Test…
The task
**Observed behavior** When a JUnit 5 test class uses `@ExtendWith(MockitoExtension.class)`, annotating a test method parameter with `@Captor`: ```java @Test void shouldCapture(@Captor ArgumentCaptor<String> captor) { // captor is null } ``` leaves the `captor` parameter uninitialized (`null`). The same happens for…
Part of Lego-X/LegoFlow-SWE.