public class ErrorReportingRunner extends Runner
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Throwable> |
causes |
private java.lang.String |
classNames |
Constructor and Description |
---|
ErrorReportingRunner(java.lang.Class<?> testClass,
java.lang.Throwable cause) |
ErrorReportingRunner(java.lang.Throwable cause,
java.lang.Class<?>... testClasses) |
Modifier and Type | Method and Description |
---|---|
private Description |
describeCause() |
private java.util.List<java.lang.Throwable> |
getCauses(java.lang.Throwable cause) |
private java.lang.String |
getClassNames(java.lang.Class<?>... testClasses) |
Description |
getDescription() |
void |
run(RunNotifier notifier)
Run the tests for this runner.
|
private void |
runCause(java.lang.Throwable child,
RunNotifier notifier) |
private final java.util.List<java.lang.Throwable> causes
private final java.lang.String classNames
public ErrorReportingRunner(java.lang.Class<?> testClass, java.lang.Throwable cause)
public ErrorReportingRunner(java.lang.Throwable cause, java.lang.Class<?>... testClasses)
public Description getDescription()
getDescription
in interface Describable
getDescription
in class Runner
Description
showing the tests to be run by the receiverpublic void run(RunNotifier notifier)
Runner
private java.lang.String getClassNames(java.lang.Class<?>... testClasses)
private java.util.List<java.lang.Throwable> getCauses(java.lang.Throwable cause)
private Description describeCause()
private void runCause(java.lang.Throwable child, RunNotifier notifier)