diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2018-08-06 15:52:34 +0530 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-08-08 13:21:20 +0000 |
commit | eb552133e407378672cc72705e9261dc4e6e9637 (patch) | |
tree | e5d5ec6b1aa6b3fb9cfcc05e070c42482ed85f2a /appc-common/src | |
parent | 88ae299e275ad50642cd0ac754bd0189439e3aca (diff) |
added test case to TestSignal.java
to increase code coverage
Issue-ID: APPC-1086
Change-Id: Ief0a74d2132295258c1a198309e310c235cad923
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-common/src')
-rw-r--r-- | appc-common/src/test/java/org/onap/appc/concurrent/TestSignal.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/appc-common/src/test/java/org/onap/appc/concurrent/TestSignal.java b/appc-common/src/test/java/org/onap/appc/concurrent/TestSignal.java index a5cd5539e..4b5eadd7a 100644 --- a/appc-common/src/test/java/org/onap/appc/concurrent/TestSignal.java +++ b/appc-common/src/test/java/org/onap/appc/concurrent/TestSignal.java @@ -144,4 +144,12 @@ public class TestSignal { String receivedSignal= mySignal.waitForAny(SIGNAL_READY); assertEquals("READY", receivedSignal); } + + @Test(expected=TimeoutException.class) + public void testWaitForAnyForEmptySignal() throws TimeoutException + { + Signal mySignal = new Signal(Thread.currentThread()); + mySignal.setTimeout(50L); + mySignal.waitForAny(); + } } |