Hi All,
I have a strange issue with my tests. When running on jenkins then maybe 5% of executions of one test ends up with:
org.mockito.exceptions.misusing.UnfinishedStubbingException:
Unfinished stubbing detected here:
-> at SomeClass.someMethod(SomeTest.java:90)
This does not makes much sense to me cause for all other invocations everything works fine. The line when stubbing happens looks good to me (and as I said it works most of time):
doThrow(new InterruptedException()).when(someCollaborator).someVoidMethod();
I was never able to repeat it when running this test locally - with IDE or with maven.
So the question is whether anyone has got similar issue? Any hints on what might be the cause? I'm starting to suspect that its all because of some neutrinos bombarding my CI server. :)
Currently I'm using Mockito 1.9.5 I will try to upgrade to latest beta and see whether it changes anything (meaning: I will run tests over and over again waiting for failure...)
Regards,
Tomek Kaczanowski