mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix JarFileTests to work on Windows
See gh-5287
This commit is contained in:
parent
a1284bce61
commit
af2483816b
@ -321,14 +321,13 @@ public class JarFileTests {
|
||||
|
||||
@Test
|
||||
public void createNonNestedUrlFromString() throws Exception {
|
||||
nonNestedJarFileFromString(
|
||||
"jar:file:" + this.rootJarFile.getAbsolutePath() + "!/2.dat");
|
||||
nonNestedJarFileFromString("jar:" + this.rootJarFile.toURI() + "!/2.dat");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createNonNestedUrlFromStringWithDoubleSlash() throws Exception {
|
||||
public void createNonNestedUrlFromPathString() throws Exception {
|
||||
nonNestedJarFileFromString(
|
||||
"jar:file://" + this.rootJarFile.getAbsolutePath() + "!/2.dat");
|
||||
"jar:" + this.rootJarFile.toPath().toUri() + "!/2.dat");
|
||||
}
|
||||
|
||||
private void nonNestedJarFileFromString(String spec) throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user