Align RuntimeHintsPredicates with new FieldMode
Closes gh-29063
This commit is contained in:
@@ -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