|
|||||||||
| 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 org.junit.runner.notification.RunListener |
|---|
testAssumptionFailure |
| 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 to| Method Detail |
|---|
public void testRunStarted(org.junit.runner.Description description)
throws java.lang.Exception
testRunStarted in class org.junit.runner.notification.RunListenerjava.lang.ExceptionRunListener.testRunStarted(org.junit.runner.Description)
public void testRunFinished(org.junit.runner.Result result)
throws java.lang.Exception
testRunFinished in class org.junit.runner.notification.RunListenerjava.lang.ExceptionRunListener.testRunFinished(org.junit.runner.Result)
public void testIgnored(org.junit.runner.Description description)
throws java.lang.Exception
testIgnored in class org.junit.runner.notification.RunListenerjava.lang.ExceptionRunListener.testIgnored(org.junit.runner.Description)
public void testStarted(org.junit.runner.Description description)
throws java.lang.Exception
testStarted in class org.junit.runner.notification.RunListenerjava.lang.ExceptionRunListener.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.RunListenerjava.lang.ExceptionRunListener.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.RunListenerjava.lang.ExceptionRunListener.testFinished(org.junit.runner.Description)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||