Polishing

This commit is contained in:
Sam Brannen
2016-09-02 16:06:16 +02:00
parent c813405ca3
commit 5fe3bcf8f9

View File

@@ -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));
}