added test case to TestSignal.java 82/73782/2
authorSandeep J <sandeejh@in.ibm.com>
Wed, 28 Nov 2018 12:20:50 +0000 (17:50 +0530)
committerPatrick Brady <patrick.brady@att.com>
Wed, 28 Nov 2018 21:42:47 +0000 (21:42 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: If908db1d5e0f45e34d4378129f41bf2908f872e2
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-core/appc-common-bundle/src/test/java/org/onap/appc/concurrent/TestSignal.java

index 4b5eadd..06ddf4f 100644 (file)
@@ -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));
+    }
 }