Package org.junit.internal.runners
Class ErrorReportingRunner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.internal.runners.ErrorReportingRunner
-
- All Implemented Interfaces:
Describable
public class ErrorReportingRunner extends Runner
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Throwable>
causes
private java.lang.String
classNames
-
Constructor Summary
Constructors Constructor Description ErrorReportingRunner(java.lang.Class<?> testClass, java.lang.Throwable cause)
ErrorReportingRunner(java.lang.Throwable cause, java.lang.Class<?>... testClasses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getDescription
public Description getDescription()
- Specified by:
getDescription
in interfaceDescribable
- Specified by:
getDescription
in classRunner
- Returns:
- a
Description
showing the tests to be run by the receiver
-
run
public void run(RunNotifier notifier)
Description copied from class:Runner
Run the tests for this runner.
-
getClassNames
private java.lang.String getClassNames(java.lang.Class<?>... testClasses)
-
getCauses
private java.util.List<java.lang.Throwable> getCauses(java.lang.Throwable cause)
-
describeCause
private Description describeCause()
-
runCause
private void runCause(java.lang.Throwable child, RunNotifier notifier)
-
-