public class JCRTestResult
extends junit.framework.TestResult
NotExecutableException
.Constructor and Description |
---|
JCRTestResult(junit.framework.TestResult orig,
LogPrintWriter log)
Creates a new JCRTestResult that delegates to
orig . |
Modifier and Type | Method and Description |
---|---|
void |
addError(junit.framework.Test test,
Throwable throwable)
Only add an error if
throwable is not of type
NotExecutableException and the test case is not a known issue. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError assertionFailedError)
Only adds a failure if
test is not a known issue. |
void |
addListener(junit.framework.TestListener testListener) |
void |
endTest(junit.framework.Test test) |
int |
errorCount() |
Enumeration<junit.framework.TestFailure> |
errors() |
int |
failureCount() |
Enumeration<junit.framework.TestFailure> |
failures() |
void |
removeListener(junit.framework.TestListener testListener) |
protected void |
run(junit.framework.TestCase test) |
int |
runCount() |
boolean |
shouldStop() |
void |
startTest(junit.framework.Test test) |
void |
stop() |
boolean |
wasSuccessful() |
public JCRTestResult(junit.framework.TestResult orig, LogPrintWriter log)
orig
.orig
- the original TestResult this result wraps.log
- the loggerprotected void run(junit.framework.TestCase test)
run
in class junit.framework.TestResult
public void addError(junit.framework.Test test, Throwable throwable)
throwable
is not of type
NotExecutableException
and the test case is not a known issue.addError
in class junit.framework.TestResult
test
- the test.throwable
- the exception thrown by the test.public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError assertionFailedError)
test
is not a known issue.addFailure
in class junit.framework.TestResult
test
- the test case that failed.assertionFailedError
- the assertion error.public void addListener(junit.framework.TestListener testListener)
addListener
in class junit.framework.TestResult
public void removeListener(junit.framework.TestListener testListener)
removeListener
in class junit.framework.TestResult
public void endTest(junit.framework.Test test)
endTest
in class junit.framework.TestResult
public int errorCount()
errorCount
in class junit.framework.TestResult
public Enumeration<junit.framework.TestFailure> errors()
errors
in class junit.framework.TestResult
public int failureCount()
failureCount
in class junit.framework.TestResult
public Enumeration<junit.framework.TestFailure> failures()
failures
in class junit.framework.TestResult
public int runCount()
runCount
in class junit.framework.TestResult
public boolean shouldStop()
shouldStop
in class junit.framework.TestResult
public void startTest(junit.framework.Test test)
startTest
in class junit.framework.TestResult
public void stop()
stop
in class junit.framework.TestResult
public boolean wasSuccessful()
wasSuccessful
in class junit.framework.TestResult
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.