From: Sandeep J Date: Mon, 6 Aug 2018 10:22:34 +0000 (+0530) Subject: added test case to TestSignal.java X-Git-Tag: 1.4.0~119 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=eb552133e407378672cc72705e9261dc4e6e9637;p=appc.git added test case to TestSignal.java to increase code coverage Issue-ID: APPC-1086 Change-Id: Ief0a74d2132295258c1a198309e310c235cad923 Signed-off-by: Sandeep J --- 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(); + } }