summaryrefslogtreecommitdiffstats
path: root/appc-common/src
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-09 15:06:36 +0530
committerTakamune Cho <tc012c@att.com>2018-08-09 15:27:23 +0000
commitdc87c8cea2a6b6f68a8d7521db325fec4319b71a (patch)
treea167c9fa3c6da9bd68735c79c8dd0cea2ffa63e6 /appc-common/src
parentfbea05903ae752ec6eefec5fdf32f6b3144e66c1 (diff)
added test case to TestSignal.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: Iacc5d38bacc946cf203d690cbe5a174e6dab15e2 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 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));
+
+ }
}