| org.jgroups.tests.InterruptTest
InterruptTest | public class InterruptTest extends TestCase (Code) | | Tests Thread.interrupt() against InputStream.read(), Object.wait() and Thread.sleep()
author: Bela Ban Oct 5 2001 |
Inner Class :class SleeperThread extends Thread | |
READ | final static int READ(Code) | | |
SLEEP | final static int SLEEP(Code) | | |
SOCKET_READ | final static int SOCKET_READ(Code) | | |
TIMEOUT | final static long TIMEOUT(Code) | | |
WAIT | final static int WAIT(Code) | | |
runTest | void runTest(SleeperThread thread)(Code) | | |
sleep | void sleep(long msecs)(Code) | | |
suite | public static Test suite()(Code) | | |
testSleepInterrupt | public void testSleepInterrupt()(Code) | | Starts the Interruptible and interrupts after TIMEOUT milliseconds. Then joins thread
(waiting for TIMEOUT msecs). PASS if thread dead, FAIL if still alive
|
testWaitInterrupt | public void testWaitInterrupt()(Code) | | |
|
|