SpEL property-not-found message hints at non-public method/field

Issue: SPR-11535
(cherry picked from commit eeb82c4)
This commit is contained in:
Juergen Hoeller
2014-03-11 10:47:53 +01:00
parent 13af188bdc
commit 27cacf0672
3 changed files with 45 additions and 54 deletions

View File

@@ -1788,7 +1788,7 @@ public class SpelReproTests extends AbstractExpressionTests {
SPR11142 rootObject = new SPR11142();
Expression expression = parser.parseExpression("something");
thrown.expect(SpelEvaluationException.class);
thrown.expectMessage("property 'something' cannot be found");
thrown.expectMessage("'something' cannot be found");
expression.getValue(context, rootObject);
}