use of org.kaazing.k3po.lang.internal.el.ExpressionContext in project zilla by aklivity.
the class ProxyFunctionsTest method shouldResolveFunction.
@Test
public void shouldResolveFunction() throws Exception {
final ELContext ctx = new ExpressionContext();
final FunctionMapper mapper = ctx.getFunctionMapper();
final Method function = mapper.resolveFunction("proxy", "beginEx");
assertNotNull(function);
assertSame(ProxyFunctions.class, function.getDeclaringClass());
}
use of org.kaazing.k3po.lang.internal.el.ExpressionContext in project zilla by aklivity.
the class FunctionsTest method shouldInvokeId.
@Test
public void shouldInvokeId() throws Exception {
ExpressionFactory factory = newExpressionFactory();
ExpressionContext environment = new ExpressionContext();
String expressionText = "${zilla:id(\"test\")}";
ValueExpression expression = factory.createValueExpression(environment, expressionText, int.class);
Object id = expression.getValue(environment);
assertThat(id, instanceOf(Integer.class));
assertNotEquals(0, Integer.class.cast(id).intValue());
}
use of org.kaazing.k3po.lang.internal.el.ExpressionContext in project zilla by aklivity.
the class KafkaFunctionsTest method setUp.
@Before
public void setUp() throws Exception {
factory = newExpressionFactory();
ctx = new ExpressionContext();
}
use of org.kaazing.k3po.lang.internal.el.ExpressionContext in project zilla by aklivity.
the class SseFunctionsTest method setUp.
@Before
public void setUp() throws Exception {
factory = newExpressionFactory();
ctx = new ExpressionContext();
}
use of org.kaazing.k3po.lang.internal.el.ExpressionContext in project zilla by aklivity.
the class AmqpFunctionsTest method setUp.
@Before
public void setUp() throws Exception {
factory = newExpressionFactory();
ctx = new ExpressionContext();
}
Aggregations