|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
net.sourceforge.groboutils.junit.v1.TestRunnable
net.sourceforge.groboutils.junit.v1.TestMonitorRunnable
A helper class to more easily create monitors. TestRunnable monitors do not have to extend this class, but it helps in becoming more conformant to the requirements of the superclass.
Field Summary |
Fields inherited from class net.sourceforge.groboutils.junit.v1.TestRunnable |
LOG |
Constructor Summary | |
TestMonitorRunnable()
|
Method Summary | |
abstract void |
runMonitor()
Performs checks on the monitored object which is being subjected to parallel processing. |
void |
runTest()
Performs all the necessary looping, end-of-threads, and interrupt checking. |
protected void |
yieldProcessing()
Instructs the thread to pause for a while. |
Methods inherited from class net.sourceforge.groboutils.junit.v1.TestRunnable |
delay, isDone, run |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestMonitorRunnable()
Method Detail |
public abstract void runMonitor() throws java.lang.Throwable
java.lang.Throwable
- any exception may be thrown and will be
reported as a test failure, except for
InterruptedExceptions, which will be ignored.public void runTest() throws java.lang.Throwable
runTest
in class TestRunnable
java.lang.Throwable
- any exception may be thrown and will be
reported as a test failure, except for
InterruptedExceptions, which will be ignored.protected void yieldProcessing() throws java.lang.InterruptedException
java.lang.InterruptedException
- allows for overloading methods to
perform a delay( long ) call within their
implementation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |