Browse Source

Polishing

pull/1158/head
Sam Brannen 10 years ago
parent
commit
5fe3bcf8f9
  1. 2
      spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java

2
spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java

@ -284,7 +284,7 @@ public abstract class TestPropertySourceUtils { @@ -284,7 +284,7 @@ public abstract class TestPropertySourceUtils {
catch (Exception ex) {
throw new IllegalStateException("Failed to load test environment property from [" + pair + "]", ex);
}
Assert.state(props.size() == 1, "Failed to load exactly one test environment property from [" + pair + "]");
Assert.state(props.size() == 1, () -> "Failed to load exactly one test environment property from [" + pair + "]");
for (String name : props.stringPropertyNames()) {
map.put(name, props.getProperty(name));
}

Loading…
Cancel
Save