Szczepan Faber

Results 116 comments of Szczepan Faber

I dug into this issue here's what happens. When Maven Surefire plugin executes the tests with parallel "suitesAndClasses" feature I see an interesting symptom: - one thread runs "withBefores" of...

It's not really fixable, that's how when() is implemented. when() assumes that the last recorded method is the method to stub. As you figured out, doReturn() API does not have...

I also like how when() looks and reads in the tests. Unless other arguments are brought up, we will close this ticket. Thanks for reporting! On Sun, Jul 24, 2016...

Thank you for reporting! What's your current workaround? The code snippet above does not seem to address the use case (given my understanding of the use case :).

I'm trying to figure out a way to move forward with this idea. >Currently it is possible to wait until a spy is called, but it is not possible to...

inOrder.verifyNoMoreInteractions() is different than Mockito.verifyNoMoreInteractions(). Take a look at the Javadoc. If the Javadoc is not clear, please submit a PR ;-)