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