From: Sandeep J Date: Wed, 28 Nov 2018 12:20:50 +0000 (+0530) Subject: added test case to TestSignal.java X-Git-Tag: 1.5.0~412 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=0b8421268aed54a7c0eabc461f81c52bc7f327d4;p=appc.git added test case to TestSignal.java to increase code coverage Issue-ID: APPC-1086 Change-Id: If908db1d5e0f45e34d4378129f41bf2908f872e2 Signed-off-by: Sandeep J --- 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)); + } }