|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2020 the original author or authors. |
| 2 | + * Copyright 2002-2022 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -232,17 +232,17 @@ public void propertyReadWriteWithRootObject() {
|
232 | 232 | assertThat(context.getRootObject().getValue()).isSameAs(target);
|
233 | 233 |
|
234 | 234 | Expression expr = parser.parseExpression("name");
|
235 |
| - assertThat(expr.getValue(context, target)).isEqualTo("p1"); |
| 235 | + assertThat(expr.getValue(context)).isEqualTo("p1"); |
236 | 236 | target.setName("p2");
|
237 |
| - assertThat(expr.getValue(context, target)).isEqualTo("p2"); |
| 237 | + assertThat(expr.getValue(context)).isEqualTo("p2"); |
238 | 238 |
|
239 | 239 | parser.parseExpression("name='p3'").getValue(context, target);
|
240 | 240 | assertThat(target.getName()).isEqualTo("p3");
|
241 |
| - assertThat(expr.getValue(context, target)).isEqualTo("p3"); |
| 241 | + assertThat(expr.getValue(context)).isEqualTo("p3"); |
242 | 242 |
|
243 |
| - expr.setValue(context, target, "p4"); |
| 243 | + expr.setValue(context, "p4"); |
244 | 244 | assertThat(target.getName()).isEqualTo("p4");
|
245 |
| - assertThat(expr.getValue(context, target)).isEqualTo("p4"); |
| 245 | + assertThat(expr.getValue(context)).isEqualTo("p4"); |
246 | 246 | }
|
247 | 247 |
|
248 | 248 | @Test
|
|
0 commit comments