void
|
collectInitializationErrors(List<Throwable> errors)
Adds to errors a throwable for each problem noted with the test class (available from getTestClass() ).
|
List<FrameworkMethod>
|
computeTestMethods()
Returns the methods that run tests.
|
Object
|
createTest()
Returns a new fixture for running a test.
|
Description
|
describeChild(FrameworkMethod method)
|
List<FrameworkMethod>
|
getChildren()
Returns a list of objects that define the children of this Runner.
|
Statement
|
methodBlock(FrameworkMethod method)
Returns a Statement that, when executed, either returns normally if
method passes, or throws an exception if method fails.
|
Statement
|
methodInvoker(FrameworkMethod method, Object test)
Returns a Statement that invokes method on test
|
Statement
|
possiblyExpectingExceptions(FrameworkMethod method, Object test, Statement next)
This method is deprecated.
Will be private soon: use Rules instead
|
void
|
runChild(FrameworkMethod method, RunNotifier notifier)
Runs the test corresponding to child , which can be assumed to be
an element of the list returned by getChildren() .
|
String
|
testName(FrameworkMethod method)
Returns the name that describes method for Description s.
|
void
|
validateConstructor(List<Throwable> errors)
Adds to errors if the test class has more than one constructor,
or if the constructor takes parameters.
|
void
|
validateInstanceMethods(List<Throwable> errors)
This method is deprecated.
unused API, will go away in future version
|
void
|
validateOnlyOneConstructor(List<Throwable> errors)
Adds to errors if the test class has more than one constructor
(do not override)
|
void
|
validateTestMethods(List<Throwable> errors)
Adds to errors for each method annotated with @Test that
is not a public, void instance method with no arguments.
|
void
|
validateZeroArgConstructor(List<Throwable> errors)
Adds to errors if the test class's single constructor takes
parameters (do not override)
|
Statement
|
withAfters(FrameworkMethod method, Object target, Statement statement)
This method is deprecated.
Will be private soon: use Rules instead
|
Statement
|
withBefores(FrameworkMethod method, Object target, Statement statement)
This method is deprecated.
Will be private soon: use Rules instead
|
Statement
|
withPotentialTimeout(FrameworkMethod method, Object test, Statement next)
This method is deprecated.
Will be private soon: use Rules instead
|