Fix Windows test failures
This commit is contained in:
parent
61b7e6f3b3
commit
1815bb5b66
|
|
@ -604,7 +604,7 @@ public class ConfigFileApplicationListenerTests {
|
||||||
@Test
|
@Test
|
||||||
public void absoluteResourceDefaultsToFile() throws Exception {
|
public void absoluteResourceDefaultsToFile() throws Exception {
|
||||||
String location = new File("src/test/resources/specificlocation.properties")
|
String location = new File("src/test/resources/specificlocation.properties")
|
||||||
.getAbsolutePath();
|
.getAbsolutePath().replace("\\", "/");
|
||||||
TestPropertySourceUtils.addInlinedPropertiesToEnvironment(this.environment,
|
TestPropertySourceUtils.addInlinedPropertiesToEnvironment(this.environment,
|
||||||
"spring.config.location=" + location);
|
"spring.config.location=" + location);
|
||||||
this.initializer.postProcessEnvironment(this.environment, this.application);
|
this.initializer.postProcessEnvironment(this.environment, this.application);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue