Examples of MVELExpressionLanguage


Examples of org.mule.el.mvel.MVELExpressionLanguage

    }

    @Test(expected = ExpressionRuntimeException.class)
    public void testFunctionInvalidParams() throws RegistrationException, InitialisationException
    {
        MVELExpressionLanguage mvel = new MVELExpressionLanguage(muleContext);
        mvel.initialise();
        mvel.evaluate("f('one')");
    }
View Full Code Here

Examples of org.mule.el.mvel.MVELExpressionLanguage

    }

    @Test
    public void testParserContextThreadLocalCleared() throws RegistrationException, InitialisationException
    {
        MVELExpressionLanguage mvel = new MVELExpressionLanguage(muleContext);
        mvel.initialise();
        // Ensure ParserContext ThreadLocal is cleared after initialization (occurs in deployment thread)
        assertThat(AbstractParser.contextControl(2, null, null), is(nullValue()));
        mvel.evaluate("f('one','two')");
        // Ensure ParserContext ThreadLocal is cleared after evaluation (occurs in receiver/flow/dispatcher thread)
        assertThat(AbstractParser.contextControl(2, null, null), is(nullValue()));
    }
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.