Adapt ErrorPageFilterIntegrationTests to upstream Framework changes

This commit is contained in:
Phillip Webb
2022-08-03 13:09:19 +01:00
parent db21bafd68
commit 080ce92ac8

View File

@@ -179,7 +179,13 @@ class ErrorPageFilterIntegrationTests {
private static final String[] EMPTY_RESOURCE_SUFFIXES = {};
@Override
public ApplicationContext loadContext(MergedContextConfiguration config) {
@Deprecated
public ApplicationContext loadContext(MergedContextConfiguration mergedConfig) throws Exception {
return loadContext(mergedConfig, true);
}
@Override
public ApplicationContext loadContext(MergedContextConfiguration config, boolean refresh) {
AnnotationConfigServletWebServerApplicationContext context = new AnnotationConfigServletWebServerApplicationContext(
config.getClasses());
context.registerShutdownHook();