mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-08 08:09:09 +00:00
Align RuntimeHintsPredicates with new FieldMode
Closes gh-29063
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ class InjectionCodeGeneratorTests {
|
||||
TestBean bean = new TestBean();
|
||||
Field field = ReflectionUtils.findField(bean.getClass(), "age");
|
||||
this.generator.generateInjectionCode(field, INSTANCE_VARIABLE, CodeBlock.of("$L", 123));
|
||||
assertThat(RuntimeHintsPredicates.reflection().onField(TestBean.class, "age").allowWrite())
|
||||
assertThat(RuntimeHintsPredicates.reflection().onField(TestBean.class, "age").withWriteMode())
|
||||
.accepts(this.hints);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user