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.TestListener
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError assertionFailedError)
addFailure
in interface junit.framework.TestListener
public void endTest(junit.framework.Test test)
endTest
in interface junit.framework.TestListener
public void startTest(junit.framework.Test test)
startTest
in interface junit.framework.TestListener
public void testIgnored(junit.framework.Test test)
IgnoredTestListener
JUnit4TestCaseFacade
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 IgnoredTestListener
test
- the details of the test and failure that have triggered this report.public void testAssumptionFailure(junit.framework.Test test, java.lang.Throwable throwable)
IgnoredTestListener
Note: Tests that throw assumption failures will still report the endTest method, which may differ from how the addError and addFailure methods work, it's up for any implementing classes to handle this.
testAssumptionFailure
in interface IgnoredTestListener
test
- the details of the test and failure that have triggered this report.throwable
- the AssumptionViolatedException thrown from the current assumption failure.