|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.TestResult junitx.ddtunit.DDTTestResult
public class DDTTestResult
Extends class TestResult
of JUnit
This class will contain extra
results from test execution based on xml data testcases.
Field Summary | |
---|---|
protected List<junit.framework.TestFailure> |
fMethodTestErrors
Vector containing all errors caught during test execution |
protected List<junit.framework.TestFailure> |
fMethodTestFailures
Vector containing all caught failures during test execution |
protected int |
fRunMethodTests
Number of executed tests inside of a testmethod |
Fields inherited from class junit.framework.TestResult |
---|
fErrors, fFailures, fListeners, fRunTests |
Constructor Summary | |
---|---|
DDTTestResult()
|
|
DDTTestResult(junit.framework.TestResult result)
Instanciate DDTTestResult by using JUnit TestResult as base info. |
Method Summary | |
---|---|
void |
addMethodTestError(junit.framework.Test test,
String testName,
Throwable throwable)
Add error of a method test execution for later statistic |
void |
addMethodTestFailure(junit.framework.Test test,
String testName,
junit.framework.AssertionFailedError assertError)
Add assertion failure of a method test execution for later statistic |
junit.framework.TestResult |
copyContent(junit.framework.TestResult result)
DOCUMENT ME! |
void |
endMethodTest(IDDTTestCase test,
String methodName)
Notify about end of method test |
int |
methodTestErrorCount()
|
int |
methodTestFailureCount()
|
ListIterator<junit.framework.TestFailure> |
methodTestFailures()
|
protected void |
run(junit.framework.TestCase test)
Runs a TestCase. |
int |
runMethodTestCount()
|
void |
runProtected(junit.framework.Test test,
junit.framework.Protectable protectedRunner)
Runs a TestCase. |
void |
startMethodTest(IDDTTestCase test,
String methodName)
Notify about start of method test |
Methods inherited from class junit.framework.TestResult |
---|
addError, addFailure, addListener, endTest, errorCount, errors, failureCount, failures, removeListener, runCount, shouldStop, startTest, stop, wasSuccessful |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<junit.framework.TestFailure> fMethodTestFailures
protected List<junit.framework.TestFailure> fMethodTestErrors
protected int fRunMethodTests
Constructor Detail |
---|
public DDTTestResult()
public DDTTestResult(junit.framework.TestResult result) throws DDTException
result
- of JUnit TestResult
DDTException
Method Detail |
---|
public junit.framework.TestResult copyContent(junit.framework.TestResult result)
result
- DOCUMENT ME!
protected void run(junit.framework.TestCase test)
run
in class junit.framework.TestResult
test
- to runpublic void runProtected(junit.framework.Test test, junit.framework.Protectable protectedRunner)
runProtected
in class junit.framework.TestResult
test
- to runprotectedRunner
- executes testmethod and and throws Throwable if any error
occurespublic void addMethodTestError(junit.framework.Test test, String testName, Throwable throwable)
test
- to runtestName
- of dataset actually processed in testmethodthrowable
- caught during execution of testDDTTestListener.addMethodTestError(junit.framework.Test,
java.lang.String, java.lang.Throwable)
public void addMethodTestFailure(junit.framework.Test test, String testName, junit.framework.AssertionFailedError assertError)
test
- to runtestName
- of dataset actually processed in testmethodassertError
- caught during execution of testDDTTestListener.addMethodTestFailure(junit.framework.Test,
java.lang.String, junit.framework.AssertionFailedError)
public void endMethodTest(IDDTTestCase test, String methodName)
test
- to runmethodName
- of actually processed methodjunitx.ddtunit.DDTTestListener#endMethodTest(junitx.ddtunit.DDTTestCase,
java.lang.String)
public void startMethodTest(IDDTTestCase test, String methodName)
test
- to runmethodName
- of actually processed methodjunitx.ddtunit.DDTTestListener#startMethodTest(junitx.ddtunit.DDTTestCase,
java.lang.String)
public int runMethodTestCount()
public int methodTestFailureCount()
public int methodTestErrorCount()
public ListIterator<junit.framework.TestFailure> methodTestFailures()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |