Search in sources :

Example 6 with ExpressionContext

use of org.kaazing.k3po.lang.internal.el.ExpressionContext in project zilla by aklivity.

the class TlsFunctionsTest method setUp.

@Before
public void setUp() throws Exception {
    factory = newExpressionFactory();
    ctx = new ExpressionContext();
}
Also used : ExpressionContext(org.kaazing.k3po.lang.internal.el.ExpressionContext) Before(org.junit.Before)

Example 7 with ExpressionContext

use of org.kaazing.k3po.lang.internal.el.ExpressionContext in project zilla by aklivity.

the class WsFunctionsTest method setUp.

@Before
public void setUp() throws Exception {
    factory = newExpressionFactory();
    ctx = new ExpressionContext();
}
Also used : ExpressionContext(org.kaazing.k3po.lang.internal.el.ExpressionContext) Before(org.junit.Before)

Example 8 with ExpressionContext

use of org.kaazing.k3po.lang.internal.el.ExpressionContext in project zilla by aklivity.

the class HttpFunctionsTest method shouldResolveFunction.

@Test
public void shouldResolveFunction() throws Exception {
    final ELContext ctx = new ExpressionContext();
    final FunctionMapper mapper = ctx.getFunctionMapper();
    final Method function = mapper.resolveFunction("http", "randomInvalidVersion");
    assertNotNull(function);
    assertSame(HttpFunctions.class, function.getDeclaringClass());
}
Also used : ELContext(javax.el.ELContext) ExpressionContext(org.kaazing.k3po.lang.internal.el.ExpressionContext) Method(java.lang.reflect.Method) FunctionMapper(javax.el.FunctionMapper) Test(org.junit.Test)

Aggregations

ExpressionContext (org.kaazing.k3po.lang.internal.el.ExpressionContext)8 Before (org.junit.Before)5 Test (org.junit.Test)3 Method (java.lang.reflect.Method)2 ELContext (javax.el.ELContext)2 FunctionMapper (javax.el.FunctionMapper)2 ExpressionFactory (javax.el.ExpressionFactory)1 ValueExpression (javax.el.ValueExpression)1 ExpressionFactoryUtils.newExpressionFactory (org.kaazing.k3po.lang.internal.el.ExpressionFactoryUtils.newExpressionFactory)1