@Test public void availableAfterCycle() throws Exception { interpreter.enter(); raiseEvent("e"); interpreter.runCycle(); assertTrue(isRaised("f")); }
@Test public void availableWithinCycle() throws Exception { interpreter.enter(); raiseEvent("e"); interpreter.runCycle(); assertTrue(getBoolean("f_available_in_cycle")); }
@Test public void syncForkTest() throws Exception { interpreter.enter(); assertTrue(isActive("A")); raiseEvent("f"); interpreter.runCycle(); assertTrue(isActive("B")); assertTrue(isActive("C1")); assertTrue(isActive("D1")); raiseEvent("f"); interpreter.runCycle(); assertTrue(isActive("B")); assertTrue(isActive("C2")); assertTrue(isActive("D2")); raiseEvent("e"); interpreter.runCycle(); assertTrue(isActive("A")); raiseEvent("f"); interpreter.runCycle(); assertTrue(isActive("B")); assertTrue(isActive("C1")); assertTrue(isActive("D1")); }