Migrate to updated native hints API and new reachability JSON

Replace hint API calls with updated version and fix tests that
relied on previous JSON files.

See gh-45487

Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
This commit is contained in:
Stéphane Nicoll
2025-05-07 13:10:42 -07:00
committed by Phillip Webb
parent 5ea0674bad
commit a0944b00d0
43 changed files with 119 additions and 150 deletions

View File

@@ -268,7 +268,7 @@ class SpringBootContextLoaderTests {
.buildMergedContextConfiguration();
RuntimeHints runtimeHints = new RuntimeHints();
contextLoader.loadContextForAotProcessing(contextConfiguration, runtimeHints);
assertThat(RuntimeHintsPredicates.reflection().onMethod(ConfigWithMain.class, "main").invoke())
assertThat(RuntimeHintsPredicates.reflection().onMethodInvocation(ConfigWithMain.class, "main"))
.accepts(runtimeHints);
}