|
|
@ -151,7 +151,7 @@ public abstract class AbstractDelegatingSmartContextLoader implements SmartConte |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void processContextConfiguration(final ContextConfigurationAttributes configAttributes) { |
|
|
|
public void processContextConfiguration(final ContextConfigurationAttributes configAttributes) { |
|
|
|
Assert.notNull(configAttributes, "configAttributes must not be null"); |
|
|
|
Assert.notNull(configAttributes, "configAttributes must not be null"); |
|
|
|
Assert.isTrue(!(configAttributes.hasLocations() && configAttributes.hasClasses()), String.format( |
|
|
|
Assert.isTrue(!(configAttributes.hasLocations() && configAttributes.hasClasses()), () -> String.format( |
|
|
|
"Cannot process locations AND classes for context configuration %s: " |
|
|
|
"Cannot process locations AND classes for context configuration %s: " |
|
|
|
+ "configure one or the other, but not both.", configAttributes)); |
|
|
|
+ "configure one or the other, but not both.", configAttributes)); |
|
|
|
|
|
|
|
|
|
|
|