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>causesprivate java.lang.StringclassNames
-
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 DescriptiondescribeCause()private java.util.List<java.lang.Throwable>getCauses(java.lang.Throwable cause)private java.lang.StringgetClassNames(java.lang.Class<?>... testClasses)DescriptiongetDescription()voidrun(RunNotifier notifier)Run the tests for this runner.private voidrunCause(java.lang.Throwable child, RunNotifier notifier)
-
-
-
Method Detail
-
getDescription
public Description getDescription()
- Specified by:
getDescriptionin interfaceDescribable- Specified by:
getDescriptionin classRunner- Returns:
- a
Descriptionshowing the tests to be run by the receiver
-
run
public void run(RunNotifier notifier)
Description copied from class:RunnerRun 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)
-
-