Class JUnitCoreRunListener
java.lang.Object
org.junit.runner.notification.RunListener
org.apache.maven.surefire.common.junit4.JUnit4RunListener
org.apache.maven.surefire.junitcore.JUnitCoreRunListener
public class JUnitCoreRunListener
extends org.apache.maven.surefire.common.junit4.JUnit4RunListener
Noteworthy things about JUnit4 listening:
A class that is annotated with @Ignore will have one invocation of "testSkipped" with source==name A method that is annotated with @Ignore will have a invocation of testSkipped with source and name distinct Methods annotated with @Ignore trigger no further events.
A class that is annotated with @Ignore will have one invocation of "testSkipped" with source==name A method that is annotated with @Ignore will have a invocation of testSkipped with source and name distinct Methods annotated with @Ignore trigger no further events.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe
-
Field Summary
Fields inherited from class org.apache.maven.surefire.common.junit4.JUnit4RunListener
reporter
-
Constructor Summary
ConstructorsConstructorDescriptionJUnitCoreRunListener
(org.apache.maven.surefire.report.RunListener reporter, Map<String, TestSet> classMethodCounts) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.surefire.report.StackTraceWriter
createStackTraceWriter
(org.junit.runner.notification.Failure failure) protected String
extractDescriptionClassName
(org.junit.runner.Description description) protected String
extractDescriptionMethodName
(org.junit.runner.Description description) void
testRunFinished
(org.junit.runner.Result result) void
testRunStarted
(org.junit.runner.Description description) Called right before any tests from a specific class are run.Methods inherited from class org.apache.maven.surefire.common.junit4.JUnit4RunListener
createReportEntry, rethrowAnyTestMechanismFailures, testAssumptionFailure, testExecutionSkippedByUser, testFailure, testFinished, testIgnored, testStarted
Methods inherited from class org.junit.runner.notification.RunListener
testSuiteFinished, testSuiteStarted
-
Constructor Details
-
Method Details
-
testRunStarted
Called right before any tests from a specific class are run.- Overrides:
testRunStarted
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
- See Also:
-
RunListener.testRunStarted(org.junit.runner.Description)
-
testRunFinished
- Overrides:
testRunFinished
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-
createStackTraceWriter
protected org.apache.maven.surefire.report.StackTraceWriter createStackTraceWriter(org.junit.runner.notification.Failure failure) - Overrides:
createStackTraceWriter
in classorg.apache.maven.surefire.common.junit4.JUnit4RunListener
-
extractDescriptionClassName
- Overrides:
extractDescriptionClassName
in classorg.apache.maven.surefire.common.junit4.JUnit4RunListener
-
extractDescriptionMethodName
- Overrides:
extractDescriptionMethodName
in classorg.apache.maven.surefire.common.junit4.JUnit4RunListener
-