summaryrefslogtreecommitdiffstats
path: root/appc-common
diff options
context:
space:
mode:
Diffstat (limited to 'appc-common')
-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 a5cd5539e..4b5eadd7a 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
@@ -144,4 +144,12 @@ public class TestSignal {
String receivedSignal= mySignal.waitForAny(SIGNAL_READY);
assertEquals("READY", receivedSignal);
}
+
+ @Test(expected=TimeoutException.class)
+ public void testWaitForAnyForEmptySignal() throws TimeoutException
+ {
+ Signal mySignal = new Signal(Thread.currentThread());
+ mySignal.setTimeout(50L);
+ mySignal.waitForAny();
+ }
}