public class TestListenerWrapper extends java.lang.Object implements junit.framework.TestListener, IgnoredTestListener
| Constructor and Description |
|---|
TestListenerWrapper(junit.framework.TestListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(junit.framework.Test test,
java.lang.Throwable throwable) |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError assertionFailedError) |
void |
endTest(junit.framework.Test test) |
void |
startTest(junit.framework.Test test) |
void |
testAssumptionFailure(junit.framework.Test test,
java.lang.Throwable throwable)
Receive a report that a test has failed an assumption.
|
void |
testIgnored(junit.framework.Test test)
Reports when a test has been marked with the @Ignore annotation.
|
public TestListenerWrapper(junit.framework.TestListener listener)
public void addError(junit.framework.Test test,
java.lang.Throwable throwable)
addError in interface junit.framework.TestListenerpublic void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError assertionFailedError)
addFailure in interface junit.framework.TestListenerpublic void endTest(junit.framework.Test test)
endTest in interface junit.framework.TestListenerpublic void startTest(junit.framework.Test test)
startTest in interface junit.framework.TestListenerpublic void testIgnored(junit.framework.Test test)
IgnoredTestListenerJUnit4TestCaseFacade
so implementing classes should be able to get the details of the ignore by casting
the argument and retrieving the descriptor from the test.testIgnored in interface IgnoredTestListenertest - the details of the test and failure that have triggered this report.public void testAssumptionFailure(junit.framework.Test test,
java.lang.Throwable throwable)
IgnoredTestListenertestAssumptionFailure in interface IgnoredTestListenertest - the details of the test and failure that have triggered this report.throwable - the AssumptionViolatedException thrown from the current assumption failure.