| edu.rice.cs.drjava.DrJavaTestCase edu.rice.cs.drjava.model.MultiThreadedTestCase
All known Subclasses: edu.rice.cs.util.LogTest, edu.rice.cs.drjava.ui.ProjectMenuTest, edu.rice.cs.drjava.model.GlobalModelTestCase, edu.rice.cs.drjava.ui.MainFrameTest, edu.rice.cs.drjava.ui.DefinitionsPaneTest,
MultiThreadedTestCase | abstract public class MultiThreadedTestCase extends DrJavaTestCase (Code) | | TestCase which can fail if another thread causes an error or failure.
version: $Id: MultiThreadedTestCase.java 4255 2007-08-28 19:17:37Z mgricken $ |
Field Summary | |
protected static volatile boolean | _testFailed Flag to keep track of whether or not a test failed in another thread (not the testing thread). |
Method Summary | |
public static void | join(Thread t) Join with a thread, i.e. | protected static void | listenerFail(String s) This method prints the failure message to System.out and kills the JVM. | public void | setUp() Initialize test state to not failed. | public void | tearDown() If any test failed, print a message saying that some test failed in another thread (not the testing thread). | public static void | wait(Object o) Wait for a notify or notifyAll. |
_testFailed | protected static volatile boolean _testFailed(Code) | | Flag to keep track of whether or not a test failed in another thread (not the testing thread).
|
MultiThreadedTestCase | public MultiThreadedTestCase()(Code) | | |
MultiThreadedTestCase | public MultiThreadedTestCase(String name)(Code) | | |
join | public static void join(Thread t)(Code) | | Join with a thread, i.e. continue only after that thread has terminated. If the join is interrupted, an
UnexpectedException is thrown.
Parameters: t - thread to join with |
listenerFail | protected static void listenerFail(String s)(Code) | | This method prints the failure message to System.out and kills the JVM. Just calling fail() doesn't always cause
the test to fail, because the listener is often called from another thread.
|
setUp | public void setUp() throws Exception(Code) | | Initialize test state to not failed.
|
tearDown | public void tearDown() throws Exception(Code) | | If any test failed, print a message saying that some test failed in another thread (not the testing thread).
|
wait | public static void wait(Object o)(Code) | | Wait for a notify or notifyAll. If the wait is interrupted, an UnexpectedException is thrown.
Parameters: o - object to wait for |
Fields inherited from edu.rice.cs.drjava.DrJavaTestCase | final public static String TEST_DRJAVA_CONFIG_PROPERTY(Code)(Java Doc)
|
|
|