public class IgnoredTestResult
extends junit.framework.TestResult
Constructor and Description |
---|
IgnoredTestResult() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(junit.framework.TestListener listener) |
long |
ignoredCount()
Report how many tests were ignored.
|
void |
removeListener(junit.framework.TestListener listener) |
long |
skippedCount()
Report how many tests has assumption failures.
|
void |
testAssumptionFailure(junit.framework.Test test,
java.lang.Throwable cause)
Records a test as having an assumption failure so JUnit will no longer be executing it.
|
void |
testIgnored(junit.framework.Test test)
Record a test as having been ignored, normally by the @Ignore annotation.
|
public void addListener(junit.framework.TestListener listener)
addListener
in class junit.framework.TestResult
public void removeListener(junit.framework.TestListener listener)
removeListener
in class junit.framework.TestResult
public void testIgnored(junit.framework.Test test) throws java.lang.Exception
test
- the test that was ignored.java.lang.Exception
- is the listener thrown an exception on handling the notification.public long ignoredCount()
public void testAssumptionFailure(junit.framework.Test test, java.lang.Throwable cause)
test
- the test to recordcause
- the details of the test and assumption failure.public long skippedCount()