From dc87c8cea2a6b6f68a8d7521db325fec4319b71a Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Thu, 9 Aug 2018 15:06:36 +0530 Subject: added test case to TestSignal.java to increase code coverage Issue-ID: APPC-1086 Change-Id: Iacc5d38bacc946cf203d690cbe5a174e6dab15e2 Signed-off-by: Sandeep J --- .../src/test/java/org/onap/appc/concurrent/TestSignal.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 4b5eadd7a..cea8192cf 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 @@ -152,4 +152,12 @@ public class TestSignal { mySignal.setTimeout(50L); mySignal.waitForAny(); } + + @Test + public void testIsSignaled() throws TimeoutException + { + Signal mySignal = new Signal(Thread.currentThread()); + assertFalse(mySignal.isSignaled(SIGNAL_READY)); + + } } -- cgit 1.2.3-korg