@Test public void booleanCoercionOfStringsFails() throws Exception { addVariable("bool", "FALSE"); assertFalse(evaluate("${!bool}", Boolean.class)); addVariable("bool", "booga"); assertFalse(evaluate("${!bool}", Boolean.class)); }
@Test public void booleanCoercionOfStringsFails() throws Exception { addVariable("bool", "FALSE"); assertFalse(evaluate("${!bool}", Boolean.class)); addVariable("bool", "booga"); assertFalse(evaluate("${!bool}", Boolean.class)); }
@Test public void booleanCoercionOfStringsFails() throws Exception { addVariable("bool", "FALSE"); assertFalse(evaluate("${!bool}", Boolean.class)); addVariable("bool", "booga"); assertFalse(evaluate("${!bool}", Boolean.class)); }
@Test public void booleanCoercionOfStringsFails() throws Exception { addVariable("bool", "FALSE"); assertFalse(evaluate("${!bool}", Boolean.class)); addVariable("bool", "booga"); assertFalse(evaluate("${!bool}", Boolean.class)); }
@Test public void booleanCoercionOfStringsFails() throws Exception { addVariable("bool", "FALSE"); assertFalse(evaluate("${!bool}", Boolean.class)); addVariable("bool", "booga"); assertFalse(evaluate("${!bool}", Boolean.class)); }
@Test public void booleanCoercionOfNumbersFails() throws Exception { addVariable("bool", 0); assertTrue(evaluate("${!bool}", Boolean.class)); addVariable("bool", 1); assertFalse(evaluate("${!bool}", Boolean.class)); evaluate("${true && 5}", String.class); }
@Test public void booleanCoercionOfNumbersFails() throws Exception { addVariable("bool", 0); assertTrue(evaluate("${!bool}", Boolean.class)); addVariable("bool", 1); assertFalse(evaluate("${!bool}", Boolean.class)); evaluate("${true && 5}", String.class); }
@Test public void booleanCoercionOfNumbersFails() throws Exception { addVariable("bool", 0); assertTrue(evaluate("${!bool}", Boolean.class)); addVariable("bool", 1); assertFalse(evaluate("${!bool}", Boolean.class)); evaluate("${true && 5}", String.class); }
@Test public void booleanCoercionOfNumbersFails() throws Exception { addVariable("bool", 0); assertTrue(evaluate("${!bool}", Boolean.class)); addVariable("bool", 1); assertFalse(evaluate("${!bool}", Boolean.class)); evaluate("${true && 5}", String.class); }
@Test public void booleanCoercionOfNumbersFails() throws Exception { addVariable("bool", 0); assertTrue(evaluate("${!bool}", Boolean.class)); addVariable("bool", 1); assertFalse(evaluate("${!bool}", Boolean.class)); evaluate("${true && 5}", String.class); }