Fix build after Spring Framework deprecation

See spring-projects/spring-framework#28905
This commit is contained in:
Brian Clozel 2022-08-02 15:03:13 +02:00
parent 09c753d445
commit a8c558a671
2 changed files with 0 additions and 11 deletions

View File

@ -244,12 +244,6 @@ public class SpringBootContextLoader extends AbstractContextLoader {
return AnnotationConfigContextLoaderUtils.detectDefaultConfigurationClasses(declaringClass);
}
@Override
public ApplicationContext loadContext(String... locations) throws Exception {
throw new UnsupportedOperationException(
"SpringApplicationContextLoader does not support the loadContext(String...) method");
}
@Override
protected String[] getResourceSuffixes() {
return new String[] { "-context.xml", "Context.groovy" };

View File

@ -186,11 +186,6 @@ class ErrorPageFilterIntegrationTests {
return context;
}
@Override
public ApplicationContext loadContext(String... locations) {
throw new UnsupportedOperationException();
}
@Override
protected String[] getResourceSuffixes() {
return EMPTY_RESOURCE_SUFFIXES;