A
Runner
runs tests and notifies a {@link org.junit.runner.notification.RunNotifier}of significant events as it does so. You will need to subclass
Runner
when using {@link org.junit.runner.RunWith} to invoke a custom runner. When creatinga custom runner, in addition to implementing the abstract methods here you must also provide a constructor that takes as an argument the {@link Class} containingthe tests.
The default runner implementation guarantees that the instances of the test case class will be constructed immediately before running the test and that the runner will retain no reference to the test case instances, generally making them available for garbage collection.
@see org.junit.runner.Description
@see org.junit.runner.RunWith
@since 4.0