From 0b8421268aed54a7c0eabc461f81c52bc7f327d4 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 28 Nov 2018 17:50:50 +0530 Subject: [PATCH 1/1] added test case to TestSignal.java to increase code coverage Issue-ID: APPC-1086 Change-Id: If908db1d5e0f45e34d4378129f41bf2908f872e2 Signed-off-by: Sandeep J --- .../src/test/java/org/onap/appc/concurrent/TestSignal.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)); + } } -- 2.16.6