コード例 #1
0
 @Test
 public void teststateIsActive() {
   statemachine.enter();
   assertTrue(statemachine.isStateActive(State.r1_R1A));
   assertTrue(statemachine.isStateActive(State.r2_R2A));
   statemachine.raiseEvent1();
   statemachine.runCycle();
   statemachine.runCycle();
   assertTrue(statemachine.isStateActive(State.r1_R1B));
   assertTrue(statemachine.isStateActive(State.r2_R2B));
 }
コード例 #2
0
 @Before
 public void setUp() {
   statemachine = new StateIsActiveStatemachine();
   statemachine.init();
 }