aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-11-28 17:50:50 +0530
committerPatrick Brady <patrick.brady@att.com>2018-11-28 21:42:47 +0000
commit0b8421268aed54a7c0eabc461f81c52bc7f327d4 (patch)
tree8fd58003f42f5230bdbc2b515c74b0fbc89ff9eb
parent6a03a867bcc22c3bc03c53f05f83d46551427584 (diff)
added test case to TestSignal.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: If908db1d5e0f45e34d4378129f41bf2908f872e2 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r--appc-core/appc-common-bundle/src/test/java/org/onap/appc/concurrent/TestSignal.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/concurrent/TestSignal.java b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/concurrent/TestSignal.java
index 4b5eadd7a..06ddf4fc5 100644
--- a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/concurrent/TestSignal.java
+++ b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/concurrent/TestSignal.java
@@ -6,7 +6,7 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
- * Modification Copyright (C) 2018 IBM
+ * Modifications Copyright (C) 2018 IBM
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -152,4 +152,11 @@ public class TestSignal {
mySignal.setTimeout(50L);
mySignal.waitForAny();
}
+
+ @Test
+ public void testIsSignaled()
+ {
+ Signal mySignal = new Signal(Thread.currentThread());
+ assertEquals(false, mySignal.isSignaled(SIGNAL_READY));
+ }
}