added test case to TestSignal.java
[appc.git] / appc-common / src / test / java / org / onap / appc / concurrent / TestSignal.java
index a5cd553..4b5eadd 100644 (file)
@@ -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();
+    }
 }