public class VerboseMockitoJUnitRunner
extends Runner
This runner does exactly what MockitoJUnitRunner
does but also
adds extra Mocktio hints to the exception message.
The point is that Mockito should help the tdd developer to quickly figure out if the test fails for the right reason and track the reason.
The implementation is pretty hacky - it uses brute force of reflection to modify the exception message and add extra mockito hints. You've been warned.
Do you think it is useful or not? Drop us an email at mockito@googlegroups.com
Experimental implementation - will change in future!
Constructor and Description |
---|
VerboseMockitoJUnitRunner(java.lang.Class<?> klass) |
Modifier and Type | Method and Description |
---|---|
void |
filter(Filter filter) |
Description |
getDescription() |
void |
run(RunNotifier notifier) |