|
||||||||
| 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
CyclicBarrierTest
public class CyclicBarrierTest
| 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 | |
|---|---|
CyclicBarrierTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testAwait1_Interrupted_BrokenBarrier()
An interruption in one party causes others waiting in await to throw BrokenBarrierException |
void |
testAwait2_Interrupted_BrokenBarrier()
An interruption in one party causes others waiting in timed await to throw BrokenBarrierException |
void |
testAwait3_TimeOutException()
A timeout in timed await throws TimeoutException |
void |
testAwait4_Timeout_BrokenBarrier()
A timeout in one party causes others waiting in timed await to throw BrokenBarrierException |
void |
testAwait5_Timeout_BrokenBarrier()
A timeout in one party causes others waiting in await to throw BrokenBarrierException |
void |
testBarrierAction()
The supplied barrier action is run at barrier |
void |
testConstructor1()
Creating with negative parties throws IAE |
void |
testConstructor2()
Creating with negative parties and no action throws IAE |
void |
testGetParties()
getParties returns the number of parties given in constructor |
void |
testReset_BrokenBarrier()
A reset of an active barrier causes waiting threads to throw BrokenBarrierException |
void |
testReset_Leakage()
All threads block while a barrier is broken. |
void |
testReset_NoBrokenBarrier()
A reset before threads enter barrier does not throw BrokenBarrierException |
void |
testResetAfterCommandException()
Reset of a barrier after a failed command reinitializes it. |
void |
testResetAfterInterrupt()
Reset of a barrier after interruption reinitializes it. |
void |
testResetAfterTimeout()
Reset of a barrier after timeout reinitializes it. |
void |
testResetWithoutBreakage()
Reset of a non-broken barrier does not break barrier |
void |
testSingleParty()
A 1-party barrier triggers after single await |
void |
testTwoParties()
A 2-party/thread barrier triggers after both threads invoke await |
| 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 CyclicBarrierTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public void testConstructor1()
public void testConstructor2()
public void testGetParties()
public void testSingleParty()
throws java.lang.Exception
java.lang.Exception
public void testBarrierAction()
throws java.lang.Exception
java.lang.Exception
public void testTwoParties()
throws java.lang.Exception
java.lang.Exception
public void testAwait1_Interrupted_BrokenBarrier()
throws java.lang.Exception
java.lang.Exception
public void testAwait2_Interrupted_BrokenBarrier()
throws java.lang.Exception
java.lang.Exception
public void testAwait3_TimeOutException()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testAwait4_Timeout_BrokenBarrier()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testAwait5_Timeout_BrokenBarrier()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testReset_BrokenBarrier()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testReset_NoBrokenBarrier()
throws java.lang.Exception
java.lang.Exception
public void testReset_Leakage()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testResetWithoutBreakage()
throws java.lang.Exception
java.lang.Exception
public void testResetAfterInterrupt()
throws java.lang.Exception
java.lang.Exception
public void testResetAfterTimeout()
throws java.lang.Exception
java.lang.Exception
public void testResetAfterCommandException()
throws java.lang.Exception
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||