Package org.mockito.runners
Class VerboseMockitoJUnitRunner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.mockito.runners.VerboseMockitoJUnitRunner
-
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable
public class VerboseMockitoJUnitRunner extends org.junit.runner.Runner implements org.junit.runner.manipulation.FilterableExperimental implementation that suppose to improve tdd/testing experience. Don't hesitate to send feedback to mockito@googlegroups.com It is very likely it will change in the next version!This runner does exactly what
MockitoJUnitRunnerdoes 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 Summary
Constructors Constructor Description VerboseMockitoJUnitRunner(java.lang.Class<?> klass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(org.junit.runner.manipulation.Filter filter)org.junit.runner.DescriptiongetDescription()voidrun(org.junit.runner.notification.RunNotifier notifier)
-
-
-
Method Detail
-
run
public void run(org.junit.runner.notification.RunNotifier notifier)
- Specified by:
runin classorg.junit.runner.Runner
-
getDescription
public org.junit.runner.Description getDescription()
- Specified by:
getDescriptionin interfaceorg.junit.runner.Describable- Specified by:
getDescriptionin classorg.junit.runner.Runner
-
filter
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException- Specified by:
filterin interfaceorg.junit.runner.manipulation.Filterable- Throws:
org.junit.runner.manipulation.NoTestsRemainException
-
-