fixed some tests that will now break because int/long can be treated as boolean. May need to change again if real numbers get the same treatment.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@54 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
f9f6e8cf21
commit
a17ab6cfaf
|
|
@ -56,11 +56,11 @@ public class BooleanExpressionTests extends ExpressionTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testBooleanErrors01() {
|
public void testBooleanErrors01() {
|
||||||
evaluateAndCheckError("1 or false", SpelMessages.TYPE_CONVERSION_ERROR, 0);
|
evaluateAndCheckError("1.0 or false", SpelMessages.TYPE_CONVERSION_ERROR, 0);
|
||||||
evaluateAndCheckError("false or 39", SpelMessages.TYPE_CONVERSION_ERROR, 9);
|
evaluateAndCheckError("false or 39.4", SpelMessages.TYPE_CONVERSION_ERROR, 9);
|
||||||
evaluateAndCheckError("true and 'hello'", SpelMessages.TYPE_CONVERSION_ERROR, 9);
|
evaluateAndCheckError("true and 'hello'", SpelMessages.TYPE_CONVERSION_ERROR, 9);
|
||||||
evaluateAndCheckError(" 'hello' and 'goodbye'", SpelMessages.TYPE_CONVERSION_ERROR, 1);
|
evaluateAndCheckError(" 'hello' and 'goodbye'", SpelMessages.TYPE_CONVERSION_ERROR, 1);
|
||||||
evaluateAndCheckError("!35", SpelMessages.TYPE_CONVERSION_ERROR, 1);
|
evaluateAndCheckError("!35.2", SpelMessages.TYPE_CONVERSION_ERROR, 1);
|
||||||
evaluateAndCheckError("! 'foob'", SpelMessages.TYPE_CONVERSION_ERROR, 2);
|
evaluateAndCheckError("! 'foob'", SpelMessages.TYPE_CONVERSION_ERROR, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue