Class IgnoredTestResult
java.lang.Object
junit.framework.TestResult
org.apache.tools.ant.taskdefs.optional.junit.IgnoredTestResult
public class IgnoredTestResult
extends junit.framework.TestResult
Records ignored and skipped tests reported as part of the execution of
 JUnit 4 tests.
- 
Field SummaryFields inherited from class junit.framework.TestResultfErrors, fFailures, fListeners, fRunTests
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddListener(junit.framework.TestListener listener) longReport how many tests were ignored.voidremoveListener(junit.framework.TestListener listener) longReport how many tests has assumption failures.voidtestAssumptionFailure(junit.framework.Test test, Throwable cause) Records a test as having an assumption failure so JUnit will no longer be executing it.voidtestIgnored(junit.framework.Test test) Record a test as having been ignored, normally by the @Ignore annotation.Methods inherited from class junit.framework.TestResultaddError, addFailure, endTest, errorCount, errors, failureCount, failures, run, runCount, runProtected, shouldStop, startTest, stop, wasSuccessful
- 
Constructor Details- 
IgnoredTestResultpublic IgnoredTestResult()
 
- 
- 
Method Details- 
addListenerpublic void addListener(junit.framework.TestListener listener) - Overrides:
- addListenerin class- junit.framework.TestResult
 
- 
removeListenerpublic void removeListener(junit.framework.TestListener listener) - Overrides:
- removeListenerin class- junit.framework.TestResult
 
- 
testIgnoredRecord a test as having been ignored, normally by the @Ignore annotation.- Parameters:
- test- the test that was ignored.
- Throws:
- Exception- is the listener thrown an exception on handling the notification.
 
- 
ignoredCountpublic long ignoredCount()Report how many tests were ignored.- Returns:
- the number of tests reported as ignored during the current execution.
 
- 
testAssumptionFailureRecords a test as having an assumption failure so JUnit will no longer be executing it. Under normal circumstances this would be counted as a skipped test.- Parameters:
- test- the test to record
- cause- the details of the test and assumption failure.
 
- 
skippedCountpublic long skippedCount()Report how many tests has assumption failures.- Returns:
- the number of tests that reported assumption failures during the current execution.
 
 
-