/** * Evaluate the specified expression and ensure the expected message comes out. * The message may have inserts and they will be checked if otherProperties is specified. * The first entry in otherProperties should always be the position. * @param expression the expression to evaluate * @param expectedMessage the expected message * @param otherProperties the expected inserts within the message */ protected void evaluateAndCheckError(String expression, SpelMessage expectedMessage, Object... otherProperties) { evaluateAndCheckError(expression, null, expectedMessage, otherProperties); }
protected static String stringValueOf(Object value) { return stringValueOf(value, false); }
sb.append(","); sb.append(stringValueOf(l[j])); sb.append(","); sb.append(stringValueOf(l[j])); sb.append(stringValueOf(object, true)); sb.append(stringValueOf(object));
AbstractExpressionTests.stringValueOf(value));
if (expectedValue instanceof String) { assertEquals("Did not get expected value for expression '" + expression + "'.", expectedValue, AbstractExpressionTests.stringValueOf(value));