aboutsummaryrefslogtreecommitdiffstats
path: root/appc-common/src
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-06 15:52:34 +0530
committerTakamune Cho <tc012c@att.com>2018-08-08 13:21:20 +0000
commiteb552133e407378672cc72705e9261dc4e6e9637 (patch)
treee5d5ec6b1aa6b3fb9cfcc05e070c42482ed85f2a /appc-common/src
parent88ae299e275ad50642cd0ac754bd0189439e3aca (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.java8
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();
+ }
}