|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
JSR166TestCase
LockSupportTest
public class LockSupportTest
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class JSR166TestCase |
|---|
eight, expensiveTests, five, four, LONG_DELAY_MS, m1, m10, m2, m3, m4, m5, m6, MEDIUM_DELAY_MS, nine, one, seven, SHORT_DELAY_MS, six, SIZE, SMALL_DELAY_MS, TEST_STRING, three, two, zero |
| Constructor Summary | |
|---|---|
LockSupportTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testGetBlockerNull()
getBlocker(null) throws NullPointerException |
void |
testParkAfterInterrupt()
park is released by preceding interrupt |
void |
testParkAfterUnpark()
park is released by preceding unpark |
void |
testParkBeforeInterrupt()
park is released by subsequent interrupt |
void |
testParkBeforeUnpark()
park is released by subsequent unpark |
void |
testParkNanosAfterInterrupt()
parkNanos is released by preceding interrupt |
void |
testParkNanosAfterUnpark()
parkNanos is released by preceding unpark |
void |
testParkNanosBeforeInterrupt()
parkNanos is released by subsequent interrupt |
void |
testParkNanosBeforeUnpark()
parkNanos is released by subsequent unpark |
void |
testParkNanosTimesOut()
parkNanos times out if not unparked |
void |
testParkUntil0Returns()
parkUntil(0) returns immediately. |
void |
testParkUntilAfterInterrupt()
parkUntil is released by preceding interrupt |
void |
testParkUntilAfterUnpark()
parkUntil is released by preceding unpark |
void |
testParkUntilBeforeInterrupt()
parkUntil is released by subsequent interrupt |
void |
testParkUntilBeforeUnpark()
parkUntil is released by subsequent unpark |
void |
testParkUntilTimesOut()
parkUntil times out if not unparked |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, setName, toString |
| 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LockSupportTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public void testParkBeforeUnpark()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testParkUntilBeforeUnpark()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testParkNanosBeforeUnpark()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testParkAfterUnpark()
throws java.lang.Exception
java.lang.Exception
public void testParkUntilAfterUnpark()
throws java.lang.Exception
java.lang.Exception
public void testParkNanosAfterUnpark()
throws java.lang.Exception
java.lang.Exception
public void testParkBeforeInterrupt()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testParkUntilBeforeInterrupt()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testParkNanosBeforeInterrupt()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testParkAfterInterrupt()
throws java.lang.Exception
java.lang.Exception
public void testParkUntilAfterInterrupt()
throws java.lang.Exception
java.lang.Exception
public void testParkNanosAfterInterrupt()
throws java.lang.Exception
java.lang.Exception
public void testParkNanosTimesOut()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testParkUntilTimesOut()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testGetBlockerNull()
public void testParkUntil0Returns()
throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||