Package org.apache.commons.scxml.model

Examples of org.apache.commons.scxml.model.State


        assertFalse(status.isFinal());
    }
   
    public void testIsFinalStateHasEvent() {
        State state = new State();
        state.setIsFinal(true);
       
        status.getStates().add(state);
        status.getEvents().add(new TriggerEvent("name", TriggerEvent.CALL_EVENT));
       
        assertFalse(status.isFinal());
View Full Code Here


       
        assertFalse(status.isFinal());
    }
   
    public void testIsFinalState() {
        State state = new State();
        state.setIsFinal(true);
       
        status.getStates().add(state);
       
        assertTrue(status.isFinal());
    }
View Full Code Here

    public void testIsStringEmpty() {
        assertFalse(SCXMLHelper.isStringEmpty("value"));
    }

    public void testIsDescendantNullParent() {
        TransitionTarget state = new State();
        TransitionTarget context = new State();
       
        assertFalse(SCXMLHelper.isDescendant(state, context));
    }
View Full Code Here

       
        assertFalse(SCXMLHelper.isDescendant(state, context));
    }
   
    public void testIsDescendantNotEqual() {
        TransitionTarget state = new State();
        state.setParent(new State());
        TransitionTarget context = new State();
       
        assertFalse(SCXMLHelper.isDescendant(state, context));
    }
View Full Code Here

       
        assertFalse(SCXMLHelper.isDescendant(state, context));
    }
   
    public void testIsDescendantEqual() {
        TransitionTarget state = new State();
        TransitionTarget context = new State();
        state.setParent(context);
       
        assertTrue(SCXMLHelper.isDescendant(state, context));
    }
View Full Code Here

       
        assertTrue(SCXMLHelper.isDescendant(state, context));
    }
   
    public void testIsDescendantParentEqual() {
        TransitionTarget state = new State();
        TransitionTarget context = new State();
        TransitionTarget parent = new State();

        parent.setParent(context);
        state.setParent(parent);
       
        assertTrue(SCXMLHelper.isDescendant(state, context));
    }
View Full Code Here

        assertEquals(0, returnValue.size());
    }
   
    public void testGetAncestorClosureUpperBoundNotNullAndContains() {
        Set states = new HashSet();
        TransitionTarget state = new State();
        state.setId("1");
        states.add(state);
       
        Set upperBounds = new HashSet();
        upperBounds.add(state);
       
View Full Code Here

        assertEquals("1", ((TransitionTarget)returnValue.toArray()[0]).getId());
    }
   
    public void testGetAncestorClosureContainsParent() {
        Set states = new HashSet();
        TransitionTarget state = new State();
        state.setId("1");
        state.setParent(state);
        states.add(state);
       
        Set upperBounds = new HashSet();
       
        Set returnValue = SCXMLHelper.getAncestorClosure(states, upperBounds);
View Full Code Here

        Parallel parallel = new Parallel();

        Parallel parent = new Parallel();
        parent.setId("4");

        State state1 = new State();
        state1.setId("1");
        State state2 = new State();
        state2.setId("2");
       
        parent.addState(state1);
        parent.addState(state2);
       
        parallel.setParent(parent);
View Full Code Here

    }
   
    public void testIsLegalConfigMultipleTopLevel() {
        Set states = new HashSet();

        State state1 = new State();
        state1.setId("1");
        State state2 = new State();
        state2.setId("2");
       
        states.add(state1);
        states.add(state2);
       
        MockErrorReporter errorReporter = new MockErrorReporter();
View Full Code Here

TOP

Related Classes of org.apache.commons.scxml.model.State

Copyright © 2018 www.massapicom. 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.