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:
committed by
Phillip Webb
parent
5ea0674bad
commit
a0944b00d0
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user