Closed GoogleCodeExporter closed 9 years ago
>I think Mockito should send a error before that, during the execution of
>the first test, in order to leave the Matchers in a good state.
I think too. The problem is that it's impossible in java :)
The only way to implement it is to put some validateFrameworkState() call in
every
tearDown() method.
Original comment by szcze...@gmail.com
on 27 Mar 2009 at 3:16
I'm closing this one. There are two features in trunk version that makes the
problem
vanish.
First, all framework validation problems now have the exception message that
contains
a navigable (clickable) location of the defect.
Secondly, there is a new MockitoTroubleshooter class that currently enables
user to
validate the framework state explicitly. This might be helpful for debugging
some
corner cases and for some eager users who wish to validate the state after each
test.
Bear in mind that Mockito validates the framework state every time you use it.
You
can read more in javadoc for MockitoTroubleshooter class:
http://code.google.com/p/mockito/source/browse/trunk/src/org/mockito/MockitoTrou
bleshooter.java
Original comment by szcze...@gmail.com
on 21 Apr 2009 at 10:11
Original comment by szcze...@gmail.com
on 9 Jun 2009 at 3:15
Original comment by brice.du...@gmail.com
on 2 Dec 2012 at 10:21
Original issue reported on code.google.com by
g.zoritc...@gmail.com
on 25 Mar 2009 at 2:28