[SPR-8541] Oops! Fixed a minor logic error in DelegatingSmartContextLoader.

master
Sam Brannen 13 years ago
parent 8ccedd452e
commit 960082dbb0
  1. 2
      org.springframework.test/src/main/java/org/springframework/test/context/support/DelegatingSmartContextLoader.java

@ -123,7 +123,7 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
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 configuration classes for context " "Cannot process locations AND configuration classes for context "
+ "configuration %s; configure one or the other, but not both.", configAttributes)); + "configuration %s; configure one or the other, but not both.", configAttributes));

Loading…
Cancel
Save