|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.autodoc.v1.testserver.TestCorrelate
net.sourceforge.groboutils.autodoc.v1.testserver.junit.JUnitTestListener
A helper class to interface between the test framework and JUnit's TestListener interface.
Constructor Summary | |
JUnitTestListener(MonitorFinder finder)
|
Method Summary | |
protected abstract void |
addError(TestData data,
java.lang.Throwable t)
Called when the test in the data has an unexpected exception thrown. |
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
An error occurred. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
A failure occurred. |
protected abstract void |
addFailure(TestData data,
junit.framework.AssertionFailedError t)
Called when the test in the data has an assertion error. |
protected TestInfo |
createTestInfo(junit.framework.Test test)
Creates a JUnitTestInfo instance. |
void |
endTest(junit.framework.Test test)
A test ended. |
protected abstract void |
endTest(TestData data)
Called after the test ends. |
void |
startTest(junit.framework.Test test)
A test started. |
protected abstract void |
startTest(TestData data)
Called before the test starts, and after the test has been registered. |
Methods inherited from class net.sourceforge.groboutils.autodoc.v1.testserver.TestCorrelate |
createTestInfo, createTestInfoFromStack, findClassMethodFromStack, getFinder, getOwner, getOwnerName, getTestData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JUnitTestListener(MonitorFinder finder)
Method Detail |
protected abstract void startTest(TestData data)
protected abstract void endTest(TestData data)
protected abstract void addError(TestData data, java.lang.Throwable t)
protected abstract void addFailure(TestData data, junit.framework.AssertionFailedError t)
public void addError(junit.framework.Test test, java.lang.Throwable t)
addError
in interface junit.framework.TestListener
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
addFailure
in interface junit.framework.TestListener
public void endTest(junit.framework.Test test)
endTest
in interface junit.framework.TestListener
public void startTest(junit.framework.Test test)
startTest
in interface junit.framework.TestListener
protected TestInfo createTestInfo(junit.framework.Test test)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |