org.apache.jackrabbit.test
Class JCRTestResult
java.lang.Object
junit.framework.TestResult
org.apache.jackrabbit.test.JCRTestResult
- public class JCRTestResult
- extends junit.framework.TestResult
Extends the standard JUnit TestResult class. This class ignores test errors
that originated in throwing a NotExecutableException
.
Fields inherited from class junit.framework.TestResult |
fErrors, fFailures, fListeners, fRunTests |
Constructor Summary |
JCRTestResult(junit.framework.TestResult orig,
LogPrintWriter log)
Creates a new JCRTestResult that delegates to orig . |
Methods inherited from class junit.framework.TestResult |
run, runProtected |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCRTestResult
public JCRTestResult(junit.framework.TestResult orig,
LogPrintWriter log)
- Creates a new JCRTestResult that delegates to
orig
.
- Parameters:
orig
- the original TestResult this result wraps.log
- the logger
addError
public void addError(junit.framework.Test test,
java.lang.Throwable throwable)
- Only add an error if
throwable
is not of type
NotExecutableException
.
- Parameters:
test
- the test.throwable
- the exception thrown by the test.
addFailure
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError assertionFailedError)
addListener
public void addListener(junit.framework.TestListener testListener)
removeListener
public void removeListener(junit.framework.TestListener testListener)
endTest
public void endTest(junit.framework.Test test)
errorCount
public int errorCount()
errors
public java.util.Enumeration errors()
failureCount
public int failureCount()
failures
public java.util.Enumeration failures()
runCount
public int runCount()
shouldStop
public boolean shouldStop()
startTest
public void startTest(junit.framework.Test test)
stop
public void stop()
wasSuccessful
public boolean wasSuccessful()
Copyright © -2005 . All Rights Reserved.