Class JUnitCore
- java.lang.Object
-
- org.apache.maven.surefire.junitcore.JUnitCore
-
- Direct Known Subclasses:
JUnitCoreWrapper.JUnitCore
class JUnitCore extends java.lang.Object
JUnitCore solves bugs in original junit classJUnitCore
.The notifier method
RunNotifier.fireTestRunFinished(org.junit.runner.Result)
is called anyway in finally block.- Since:
- 2.19
- See Also:
- JUnit issue 1186
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterException(java.lang.Throwable e)
protected void
afterFinished()
(package private) org.junit.runner.Result
run(org.junit.runner.Runner runner)
-
-
-
Field Detail
-
notifier
private final Notifier notifier
-
-
Constructor Detail
-
JUnitCore
JUnitCore(Notifier notifier)
-
-
Method Detail
-
run
org.junit.runner.Result run(org.junit.runner.Runner runner) throws TestSetFailedException
- Throws:
TestSetFailedException
-
afterException
protected void afterException(java.lang.Throwable e) throws TestSetFailedException
- Throws:
TestSetFailedException
-
afterFinished
protected void afterFinished()
-
-