|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestResult
org.apache.tools.ant.taskdefs.optional.junit.IgnoredTestResult
public class IgnoredTestResult
Records ignored and skipped tests reported as part of the execution of JUnit 4 tests.
Constructor Summary | |
---|---|
IgnoredTestResult()
|
Method Summary | |
---|---|
void |
addListener(TestListener listener)
|
long |
ignoredCount()
Report how many tests were ignored. |
void |
removeListener(TestListener listener)
|
long |
skippedCount()
Report how many tests has assumption failures. |
void |
testAssumptionFailure(Test test,
java.lang.Throwable cause)
Records a test as having an assumption failure so JUnit will no longer be executing it. |
void |
testIgnored(Test test)
Record a test as having been ignored, normally by the @Ignore annotation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IgnoredTestResult()
Method Detail |
---|
public void addListener(TestListener listener)
public void removeListener(TestListener listener)
public void testIgnored(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(Test test, java.lang.Throwable cause)
test
- the test to recordcause
- the details of the test and assumption failure.public long skippedCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |