public class BarrierTest extends Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
thrown |
| Constructor and Description |
|---|
BarrierTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAwaitWithTimeout() |
void |
testGetDefaultTimeout_default() |
void |
testGetDefaultTimeout_invalid() |
void |
testGetDefaultTimeout_overridden() |
void |
testSignalAndAwait()
Two threads use barriers to play ping-pong.
|
void |
testSignallingAgainThrowsAnException() |
void |
testTrySignalDoesNotThrowExceptionForExtraSignal() |
public void testGetDefaultTimeout_default()
throws Exception
Exceptionpublic void testGetDefaultTimeout_invalid()
throws Exception
Exceptionpublic void testGetDefaultTimeout_overridden()
throws Exception
Exceptionpublic void testSignalAndAwait()
throws Exception
Exceptionpublic void testSignallingAgainThrowsAnException()
throws Exception
Exceptionpublic void testTrySignalDoesNotThrowExceptionForExtraSignal()
throws Exception
ExceptionCopyright © 2017 Atlassian. All rights reserved.