master
Sam Brannen 8 years ago
parent c813405ca3
commit 5fe3bcf8f9
  1. 2
      spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java

@ -284,7 +284,7 @@ public abstract class TestPropertySourceUtils {
catch (Exception ex) { catch (Exception ex) {
throw new IllegalStateException("Failed to load test environment property from [" + pair + "]", 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()) { for (String name : props.stringPropertyNames()) {
map.put(name, props.getProperty(name)); map.put(name, props.getProperty(name));
} }

Loading…
Cancel
Save