|
||||||||||
| 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.common.junit4.JUnit4RunListener
public class JUnit4RunListener
RunListener for JUnit4, delegates to our own RunListener
| Field Summary | |
|---|---|
protected RunListener |
reporter
|
| Constructor Summary | |
|---|---|
JUnit4RunListener(RunListener reporter)
Constructor. |
|
| Method Summary | |
|---|---|
protected SimpleReportEntry |
createReportEntry(org.junit.runner.Description description)
|
protected StackTraceWriter |
createStackTraceWriter(org.junit.runner.notification.Failure failure)
|
static String |
extractClassName(org.junit.runner.Description description)
|
static String |
extractMethodName(org.junit.runner.Description description)
|
String |
getClassName(org.junit.runner.Description description)
|
static boolean |
isFailureInsideJUnitItself(org.junit.runner.notification.Failure failure)
|
static void |
rethrowAnyTestMechanismFailures(org.junit.runner.Result run)
|
void |
testAssumptionFailure(org.junit.runner.notification.Failure failure)
|
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 |
testStarted(org.junit.runner.Description description)
Called when a specific test has started. |
| Methods inherited from class org.junit.runner.notification.RunListener |
|---|
testRunFinished, testRunStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final RunListener reporter
| Constructor Detail |
|---|
public JUnit4RunListener(RunListener reporter)
reporter - the reporter to log testing events to| Method Detail |
|---|
public void testIgnored(org.junit.runner.Description description)
throws Exception
testIgnored in class org.junit.runner.notification.RunListenerExceptionRunListener.testIgnored(org.junit.runner.Description)
public void testStarted(org.junit.runner.Description description)
throws Exception
testStarted in class org.junit.runner.notification.RunListenerExceptionRunListener.testStarted(org.junit.runner.Description)
public void testFailure(org.junit.runner.notification.Failure failure)
throws Exception
testFailure in class org.junit.runner.notification.RunListenerExceptionRunListener.testFailure(org.junit.runner.notification.Failure)protected StackTraceWriter createStackTraceWriter(org.junit.runner.notification.Failure failure)
public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
public void testFinished(org.junit.runner.Description description)
throws Exception
testFinished in class org.junit.runner.notification.RunListenerExceptionRunListener.testFinished(org.junit.runner.Description)protected SimpleReportEntry createReportEntry(org.junit.runner.Description description)
public String getClassName(org.junit.runner.Description description)
public static String extractClassName(org.junit.runner.Description description)
public static String extractMethodName(org.junit.runner.Description description)
public static void rethrowAnyTestMechanismFailures(org.junit.runner.Result run)
throws org.apache.maven.surefire.testset.TestSetFailedException
org.apache.maven.surefire.testset.TestSetFailedExceptionpublic static boolean isFailureInsideJUnitItself(org.junit.runner.notification.Failure failure)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||