Szczepan Faber
Szczepan Faber
Makes sense. We should look into it. Have you thought about contributing? Thanks for reporting!
Hey can you summarize version we are compatible / not compatible with? Sorry for late response - if it takes too long for me to respond/figure it out I'll give...
@magneticflux-, interested in becoming a project member of the Shipkit organization?
Thank you for reporting! I've read the JUnit5 Jupiter docs and it seems that before-class / after-class events are supported ([reference](https://junit.org/junit5/docs/current/user-guide/#extensions-lifecycle-callbacks)). Do you want to take a stab at it?
Thanks for looking into it! Yes, runner works differently than MockitoSession / JUnit rule / extension. They should reuse most code, though ;) Will you be able to change MockitoExtension...
>However I'm struggling to work out how to actually fix this. As far as I can tell the junit runner doesn't interact with the MockitoSession and observes a different life...
> That and the fact I've spent a bunch of time sprinkling lenient = true around tests I've been refactoring today @SamBarker, what exact API you use to "sprinkle" lenient...
> @Mock(lenient = true) on a field alternative: ```java @BeforeEach public void setup() { lenient().when(mock.foo()).thenReturn(true); } ``` This way, only the specific stubbing is "lenient".
Thank you for reporting!
What version you are migrating from?