|
||||||||
| 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
ExchangerTest
public class ExchangerTest
| 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 | |
|---|---|
ExchangerTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testExchange_InterruptedException()
interrupt during wait for exchange throws IE |
void |
testExchange_TimeOutException()
timeout during wait for timed exchange throws TOE |
void |
testExchange()
exchange exchanges objects across two threads |
void |
testReplacementAfterExchange()
If one exchanging thread is interrupted, another succeeds. |
void |
testTimedExchange_InterruptedException()
interrupt during wait for timed exchange throws IE |
void |
testTimedExchange()
timed exchange exchanges objects across two threads |
| 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 ExchangerTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public void testExchange()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testTimedExchange()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testExchange_InterruptedException()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testTimedExchange_InterruptedException()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testExchange_TimeOutException()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testReplacementAfterExchange()
throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||