693694695696697698699700701702703704705
} @Test(expected=ELException.class) public void testAllMatch04() { ELProcessor processor = new ELProcessor(); Optional result = (Optional) processor.getValue( "[].stream().allMatch(x->x==7)", Object.class); result.get(); }
505152535455565758
String.valueOf(ELArithmetic.subtract(a, b))); } @Test public void testSubtract02() { ELProcessor processor = new ELProcessor(); Object result = processor.eval("null - null"); Assert.assertEquals(Long.valueOf(0), result); }
636465666768697071
String.valueOf(ELArithmetic.multiply(a, b))); } @Test public void testMultiply02() { ELProcessor processor = new ELProcessor(); Object result = processor.eval("null * null"); Assert.assertEquals(Long.valueOf(0), result); }
705706707708709710711712713714715716717
} @Test public void testNoneMatch01() { ELProcessor processor = new ELProcessor(); Optional result = (Optional) processor.getValue( "[1,2,3,4,5].stream().allMatch(x->x>3)", Object.class); Assert.assertEquals(Boolean.FALSE, result.get()); }
767778798081828384
String.valueOf(ELArithmetic.divide(a, b))); } @Test public void testDivide02() { ELProcessor processor = new ELProcessor(); Object result = processor.eval("null / null"); Assert.assertEquals(Long.valueOf(0), result); }
899091929394959697
String.valueOf(ELArithmetic.mod(a, b))); } @Test public void testMod02() { ELProcessor processor = new ELProcessor(); Object result = processor.eval("null % null"); Assert.assertEquals(Long.valueOf(0), result); }
717718719720721722723724725726727728729
} @Test public void testNoneMatch02() { ELProcessor processor = new ELProcessor(); Optional result = (Optional) processor.getValue( "[1,2,3,4,5].stream().noneMatch(x->x>0)", Object.class); Assert.assertEquals(Boolean.FALSE, result.get()); }
96979899100101102103104
Assert.assertEquals(Long.valueOf(0), result); } @Test public void testUnaryMinus01() { ELProcessor processor = new ELProcessor(); Object result = processor.eval("-null"); Assert.assertEquals(Long.valueOf(0), result); }
729730731732733734735736737738739740741
} @Test public void testNoneMatch03() { ELProcessor processor = new ELProcessor(); Optional result = (Optional) processor.getValue( "[1,2,3,4,5].stream().noneMatch(x->x>10)", Object.class); Assert.assertEquals(Boolean.TRUE, result.get()); }
741742743744745746747748749750751752753
} @Test(expected=ELException.class) public void testNoneMatch04() { ELProcessor processor = new ELProcessor(); Optional result = (Optional) processor.getValue( "[].stream().noneMatch(x->x==7)", Object.class); result.get(); }