|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.junit.runner.notification.RunListener
org.apache.maven.surefire.junit4.JUnit4TestSetReporter
public class JUnit4TestSetReporter
Field Summary | |
---|---|
private static java.util.ResourceBundle |
bundle
|
private boolean |
failureFlag
This flag is set after a failure has occurred so that a testSucceeded event is not fired. |
private org.apache.maven.surefire.report.ReporterManager |
reportMgr
|
private JUnit4TestSet |
testSet
|
Constructor Summary | |
---|---|
JUnit4TestSetReporter(JUnit4TestSet testSet,
org.apache.maven.surefire.report.ReporterManager reportManager)
Constructor. |
Method Summary | |
---|---|
void |
testFailure(org.junit.runner.notification.Failure failure)
Called when a specific test has failed. |
void |
testFinished(org.junit.runner.Description description)
Called after a specific test has finished. |
void |
testIgnored(org.junit.runner.Description description)
Called when a specific test has been skipped (for whatever reason). |
void |
testRunFinished(org.junit.runner.Result result)
Called right after all tests from a specific class are run. |
void |
testRunStarted(org.junit.runner.Description description)
Called right before any tests from a specific class are run. |
void |
testStarted(org.junit.runner.Description description)
Called when a specific test has started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.ResourceBundle bundle
private JUnit4TestSet testSet
private org.apache.maven.surefire.report.ReporterManager reportMgr
private boolean failureFlag
testSucceeded
event is not fired. This is necessary because JUnit4 always fires a testRunFinished
event-- even if there was a failure.
Constructor Detail |
---|
JUnit4TestSetReporter(JUnit4TestSet testSet, org.apache.maven.surefire.report.ReporterManager reportManager)
testSet
- the specific test set that this will report on as it is
executedreportManager
- the report manager to log testing events toMethod Detail |
---|
public void testRunStarted(org.junit.runner.Description description) throws java.lang.Exception
testRunStarted
in class org.junit.runner.notification.RunListener
java.lang.Exception
RunListener.testRunStarted(org.junit.runner.Description)
public void testRunFinished(org.junit.runner.Result result) throws java.lang.Exception
testRunFinished
in class org.junit.runner.notification.RunListener
java.lang.Exception
RunListener.testRunFinished(org.junit.runner.Result)
public void testIgnored(org.junit.runner.Description description) throws java.lang.Exception
testIgnored
in class org.junit.runner.notification.RunListener
java.lang.Exception
RunListener.testIgnored(org.junit.runner.Description)
public void testStarted(org.junit.runner.Description description) throws java.lang.Exception
testStarted
in class org.junit.runner.notification.RunListener
java.lang.Exception
RunListener.testStarted(org.junit.runner.Description)
public void testFailure(org.junit.runner.notification.Failure failure) throws java.lang.Exception
testFailure
in class org.junit.runner.notification.RunListener
java.lang.Exception
RunListener.testFailure(org.junit.runner.notification.Failure)
public void testFinished(org.junit.runner.Description description) throws java.lang.Exception
testFinished
in class org.junit.runner.notification.RunListener
java.lang.Exception
RunListener.testFinished(org.junit.runner.Description)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |