|
|
@ -242,13 +242,6 @@ public class EnvironmentEndpointTests {
|
|
|
|
.isEqualTo("bar");
|
|
|
|
.isEqualTo("bar");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
public void propertyEntryNoMatchReturnNull() {
|
|
|
|
|
|
|
|
EnvironmentDescriptor env = new EnvironmentEndpoint(new StandardEnvironment())
|
|
|
|
|
|
|
|
.environmentEntry("this.property.does-not-exist");
|
|
|
|
|
|
|
|
assertThat(env).isNull();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void clearSystemProperties(String... properties) {
|
|
|
|
private void clearSystemProperties(String... properties) {
|
|
|
|
for (String property : properties) {
|
|
|
|
for (String property : properties) {
|
|
|
|
System.clearProperty(property);
|
|
|
|
System.clearProperty(property);
|
|
|
|