Open GoogleCodeExporter opened 8 years ago
Workaround is to mock out super-interface call in addition to mocking out the
overriding interface. In the example above it would be:
doThrow(new ExpectedException()).when(((Operator<Car>)
driver)).start(Matchers.<Car>any());
Original comment by hansen.c...@gmail.com
on 27 Feb 2014 at 6:45
[deleted comment]
[deleted comment]
Hey thanks, that may be related to bridge methods.
We are experimenting bridge methods hacks a bit in the following PR,
https://github.com/mockito/mockito/pull/33.
Though, there's still regressions with the current status of this PR.
Original comment by brice.du...@gmail.com
on 18 Mar 2014 at 7:38
As I mentioned in the additional information section, I did try the pull
request you mentioned and it did not resolve the issue. I don't think it's a
bridge method in this case, but I could be wrong.
Original comment by hansen.c...@gmail.com
on 19 Mar 2014 at 5:38
In this case it is not related to the bridge method but problem is with
InvocationMatcher. I think that it will be fixed together with PR33
Original comment by albers...@gmail.com
on 19 Mar 2014 at 5:56
OK, if this PR is fixing it. Please add a new test case.
I will find some time tonight to have a better look a the problem.
Original comment by brice.du...@gmail.com
on 19 Mar 2014 at 6:23
Original issue reported on code.google.com by
hansen.c...@gmail.com
on 27 Feb 2014 at 6:41