use of jakarta.el.ELProcessor in project tomcat by apache.
the class TestAstSetData method testSimple01.
@Test
public void testSimple01() {
ELProcessor processor = new ELProcessor();
Object result = processor.getValue("{'a','b','c'}", Set.class);
Assert.assertEquals(simpleSet, result);
}
use of jakarta.el.ELProcessor in project tomcat by apache.
the class TestAstSetData method testNested01.
@Test
public void testNested01() {
ELProcessor processor = new ELProcessor();
Object result = processor.getValue("{{'a','b','c'},{},'d'}", Set.class);
Assert.assertEquals(nestedSet, result);
}
use of jakarta.el.ELProcessor in project tomcat by apache.
the class TestAstAnd method test02.
@Test
public void test02() {
ELProcessor processor = new ELProcessor();
Boolean result = processor.eval("true && null");
Assert.assertEquals(Boolean.FALSE, result);
}
use of jakarta.el.ELProcessor in project tomcat by apache.
the class TestAstAnd method test04.
@Test
public void test04() {
ELProcessor processor = new ELProcessor();
Boolean result = processor.eval("null && null");
Assert.assertEquals(Boolean.FALSE, result);
}
use of jakarta.el.ELProcessor in project tomcat by apache.
the class TestAstChoice method test01.
@Test
public void test01() {
ELProcessor processor = new ELProcessor();
Long result = processor.eval("null?1:2");
Assert.assertEquals(Long.valueOf(2), result);
}
Aggregations