Package org.apache.jackrabbit.test
Class JCRTestResult
- java.lang.Object
-
- junit.framework.TestResult
-
- org.apache.jackrabbit.test.JCRTestResult
-
public class JCRTestResult extends junit.framework.TestResultExtends the standard JUnit TestResult class. This class ignores test errors that originated in throwing aNotExecutableException.
-
-
Constructor Summary
Constructors Constructor Description JCRTestResult(junit.framework.TestResult orig, LogPrintWriter log)Creates a new JCRTestResult that delegates toorig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(junit.framework.Test test, Throwable throwable)Only add an error ifthrowableis not of typeNotExecutableExceptionand the test case is not a known issue.voidaddFailure(junit.framework.Test test, junit.framework.AssertionFailedError assertionFailedError)Only adds a failure iftestis not a known issue.voidaddListener(junit.framework.TestListener testListener)voidendTest(junit.framework.Test test)interrorCount()Enumeration<junit.framework.TestFailure>errors()intfailureCount()Enumeration<junit.framework.TestFailure>failures()voidremoveListener(junit.framework.TestListener testListener)protected voidrun(junit.framework.TestCase test)intrunCount()booleanshouldStop()voidstartTest(junit.framework.Test test)voidstop()booleanwasSuccessful()
-
-
-
Constructor Detail
-
JCRTestResult
public JCRTestResult(junit.framework.TestResult orig, LogPrintWriter log)Creates a new JCRTestResult that delegates toorig.- Parameters:
orig- the original TestResult this result wraps.log- the logger
-
-
Method Detail
-
run
protected void run(junit.framework.TestCase test)
- Overrides:
runin classjunit.framework.TestResult
-
addError
public void addError(junit.framework.Test test, Throwable throwable)Only add an error ifthrowableis not of typeNotExecutableExceptionand the test case is not a known issue.- Overrides:
addErrorin classjunit.framework.TestResult- Parameters:
test- the test.throwable- the exception thrown by the test.
-
addFailure
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError assertionFailedError)Only adds a failure iftestis not a known issue.- Overrides:
addFailurein classjunit.framework.TestResult- Parameters:
test- the test case that failed.assertionFailedError- the assertion error.
-
addListener
public void addListener(junit.framework.TestListener testListener)
- Overrides:
addListenerin classjunit.framework.TestResult
-
removeListener
public void removeListener(junit.framework.TestListener testListener)
- Overrides:
removeListenerin classjunit.framework.TestResult
-
endTest
public void endTest(junit.framework.Test test)
- Overrides:
endTestin classjunit.framework.TestResult
-
errorCount
public int errorCount()
- Overrides:
errorCountin classjunit.framework.TestResult
-
errors
public Enumeration<junit.framework.TestFailure> errors()
- Overrides:
errorsin classjunit.framework.TestResult
-
failureCount
public int failureCount()
- Overrides:
failureCountin classjunit.framework.TestResult
-
failures
public Enumeration<junit.framework.TestFailure> failures()
- Overrides:
failuresin classjunit.framework.TestResult
-
runCount
public int runCount()
- Overrides:
runCountin classjunit.framework.TestResult
-
shouldStop
public boolean shouldStop()
- Overrides:
shouldStopin classjunit.framework.TestResult
-
startTest
public void startTest(junit.framework.Test test)
- Overrides:
startTestin classjunit.framework.TestResult
-
stop
public void stop()
- Overrides:
stopin classjunit.framework.TestResult
-
wasSuccessful
public boolean wasSuccessful()
- Overrides:
wasSuccessfulin classjunit.framework.TestResult
-
-