Package org.apache.commons.scxml.env.jsp

Examples of org.apache.commons.scxml.env.jsp.ELContext


        runtest();
    }

    public void testDatamodelSimultaneousJsp() {
        exec01 = SCXMLTestHelper.getExecutor(datamodel01jsp,
            new ELContext(), new ELEvaluator());
        assertNotNull(exec01);
        exec02 = SCXMLTestHelper.getExecutor(datamodel01jsp,
            new ELContext(), new ELEvaluator());
        assertNotNull(exec02);
        assertFalse(exec01 == exec02);
        runtest();
    }
View Full Code Here


     */
    public void setUp() {
        actionsSample = this.getClass().getClassLoader().
            getResource("org/apache/commons/scxml/model/actions-test.xml");
        evaluator = new ELEvaluator();
        ctx = new ELContext();
    }
View Full Code Here

    /**
     * Test the implementation
     */
    public void testModelActions() {
        exec = SCXMLTestHelper.getExecutor(actionsSample, ctx, evaluator);
        ELContext ctx = (ELContext) SCXMLTestHelper.lookupContext(exec,
            "actionsTest");
        assertEquals((String) ctx.get("foo"), "foobar");
    }
View Full Code Here

        runtest();
    }

    public void testDatamodelSimultaneousJsp() {
        exec01 = SCXMLTestHelper.getExecutor(datamodel01jsp,
            new ELContext(), new ELEvaluator());
        assertNotNull(exec01);
        exec02 = SCXMLTestHelper.getExecutor(datamodel01jsp,
            new ELContext(), new ELEvaluator());
        assertNotNull(exec02);
        assertFalse(exec01 == exec02);
        runtest();
    }
View Full Code Here

    public void testDatamodelNamespacePrefixedXPaths() {
        exec01 = SCXMLTestHelper.getExecutor(datamodel02jexl,
            new JexlContext(), new JexlEvaluator());
        assertNotNull(exec01);
        exec02 = SCXMLTestHelper.getExecutor(datamodel02jsp,
            new ELContext(), new ELEvaluator());
        assertNotNull(exec02);
        assertFalse(exec01 == exec02);
        runtest();
    }
View Full Code Here

     */
    public void setUp() {
        actionsSample = this.getClass().getClassLoader().
            getResource("org/apache/commons/scxml/model/actions-test.xml");
        evaluator = new ELEvaluator();
        ctx = new ELContext();
    }
View Full Code Here

     * Test the implementation
     */
    public void testModelActions() {
        SCXML scxml = SCXMLTestHelper.parse(actionsSample);
        exec = SCXMLTestHelper.getExecutor(scxml, ctx, evaluator);
        ELContext ctx = (ELContext) SCXMLTestHelper.lookupContext(exec,
            "actionsTest");
        assertEquals((String) ctx.get("foo"), "foobar");
        assertEquals("Missed event transition",
            "true", (String) ctx.get("eventsent"));
    }
View Full Code Here

     * Test the stateless model, simultaneous executions, EL expressions
     */
    public void testStatelessModelSimultaneousEl() {
      // parse once, use many times
        exec01 = SCXMLTestHelper.getExecutor(scxml01jsp,
            new ELContext(), new ELEvaluator());
        assertNotNull(exec01);
        exec02 = SCXMLTestHelper.getExecutor(scxml01jsp,
            new ELContext(), new ELEvaluator());
        assertNotNull(exec02);
        assertFalse(exec01 == exec02);
        runSimultaneousTest();
    }
View Full Code Here

     */
    public void testStatelessModelSequentialEl() {
        // rinse and repeat
        for (int i = 0; i < 3; i++) {
            exec01 = SCXMLTestHelper.getExecutor(scxml01jsp,
                new ELContext(), new ELEvaluator());
            assertNotNull(exec01);
            runSequentialTest();
        }
    }
View Full Code Here

        datamodel03jexl = this.getClass().getClassLoader().
            getResource("org/apache/commons/scxml/env/jexl/datamodel-03.xml");
        datamodel03jsp = this.getClass().getClassLoader().
            getResource("org/apache/commons/scxml/env/jsp/datamodel-03.xml");
        exec01 = SCXMLTestHelper.getExecutor(datamodel03jexl);
        exec02 = SCXMLTestHelper.getExecutor(datamodel03jsp, new ELContext(), new ELEvaluator());
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.scxml.env.jsp.ELContext

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.