Package org.squirrelframework.foundation.fsm

Examples of org.squirrelframework.foundation.fsm.UntypedStateMachine.test()


                try {
                    actionCondition.await();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                testStateRef.set(fsm.test("SECOND"));
                eventCondition.countDown();
            }
        }, "Test-Thread-3").start();
       
        // thread 4 dump data while processing event "FIRST"
View Full Code Here


        assertEquals(readStateRef.get(), "C");
        assertEquals(testStateRef.get(), "E");
        assertNotNull(dumpDataRef.get());
        assertEquals(((StateMachineData.Reader)dumpDataRef.get()).currentState(), "C");
       
        Object testAgain = fsm.test("SECOND");
        assertEquals(testAgain, "E");
    }
   
    @Test
    @SuppressWarnings("unused")
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.