File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
spring-expression/src/test/java/org/springframework/expression/spel Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -262,12 +262,12 @@ public void propertyAccessWithInstanceMethodResolver() {
262
262
263
263
@ Test
264
264
public void propertyAccessWithInstanceMethodResolverAndTypedRootObject () {
265
- Person target = new Person ("p1" );
265
+ Person rootObject = new Person ("p1" );
266
266
EvaluationContext context = SimpleEvaluationContext .forReadOnlyDataBinding ().
267
- withInstanceMethods ().withTypedRootObject (target , TypeDescriptor .valueOf (Object .class )).build ();
267
+ withInstanceMethods ().withTypedRootObject (rootObject , TypeDescriptor .valueOf (Object .class )).build ();
268
268
269
- assertThat (parser .parseExpression ("name.substring(1)" ).getValue (context , target )).isEqualTo ("1" );
270
- assertThat (context .getRootObject ().getValue ()).isSameAs (target );
269
+ assertThat (parser .parseExpression ("name.substring(1)" ).getValue (context )).isEqualTo ("1" );
270
+ assertThat (context .getRootObject ().getValue ()).isSameAs (rootObject );
271
271
assertThat (context .getRootObject ().getTypeDescriptor ().getType ()).isSameAs (Object .class );
272
272
}
273
273
You can’t perform that action at this time.
0 commit comments