Fix Windows test failures

This commit is contained in:
Phillip Webb 2016-04-10 13:08:34 -07:00
parent 61b7e6f3b3
commit 1815bb5b66
1 changed files with 1 additions and 1 deletions

View File

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