Пример #1
0
 @Test
 public void availableAfterCycle() throws Exception {
   interpreter.enter();
   raiseEvent("e");
   interpreter.runCycle();
   assertTrue(isRaised("f"));
 }
Пример #2
0
 @Test
 public void availableWithinCycle() throws Exception {
   interpreter.enter();
   raiseEvent("e");
   interpreter.runCycle();
   assertTrue(getBoolean("f_available_in_cycle"));
 }
Пример #3
0
 @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"));
 }