fixed ExplodedArchive which fail on windows

* when run 'java org.springframework.boot.loader.JarLauncher'

Fixes gh-176
This commit is contained in:
Guo Du
2013-12-20 12:25:38 +00:00
committed by Dave Syer
parent 3f25fec65f
commit 2a10503167
2 changed files with 5 additions and 9 deletions

View File

@@ -122,7 +122,7 @@ public class ExplodedArchiveTests {
Map<String, Entry> nestedEntries = getEntriesMap(nested);
assertThat(nestedEntries.size(), equalTo(1));
assertThat(nested.getUrl().toString(),
equalTo("file:" + this.rootFolder.getPath() + File.separator + "d/"));
equalTo("file:" + this.rootFolder.toURI().getPath() + "d/"));
}
@Test