Skip to content

Commit ca7ebd6

Browse files
committed
Stop using deprecated ReflectionHintsPredicates.onMethod() on main
1 parent 702c63a commit ca7ebd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spring-test/src/test/java/org/springframework/test/context/aot/AotContextLoaderRuntimeHintsTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void aotContextLoaderCanRegisterRuntimeHints() {
4949

5050
generator.processAheadOfTime(Stream.of(TestCase.class));
5151

52-
assertThat(reflection().onMethod(ConfigWithMain.class, "main").invoke()).accepts(runtimeHints);
52+
assertThat(reflection().onMethodInvocation(ConfigWithMain.class, "main")).accepts(runtimeHints);
5353
}
5454

5555

0 commit comments

Comments
 (0)