|
|
@ -321,14 +321,13 @@ public class JarFileTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void createNonNestedUrlFromString() throws Exception {
|
|
|
|
public void createNonNestedUrlFromString() throws Exception {
|
|
|
|
nonNestedJarFileFromString(
|
|
|
|
nonNestedJarFileFromString("jar:" + this.rootJarFile.toURI() + "!/2.dat");
|
|
|
|
"jar:file:" + this.rootJarFile.getAbsolutePath() + "!/2.dat");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void createNonNestedUrlFromStringWithDoubleSlash() throws Exception {
|
|
|
|
public void createNonNestedUrlFromPathString() throws Exception {
|
|
|
|
nonNestedJarFileFromString(
|
|
|
|
nonNestedJarFileFromString(
|
|
|
|
"jar:file://" + this.rootJarFile.getAbsolutePath() + "!/2.dat");
|
|
|
|
"jar:" + this.rootJarFile.toPath().toUri() + "!/2.dat");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void nonNestedJarFileFromString(String spec) throws Exception {
|
|
|
|
private void nonNestedJarFileFromString(String spec) throws Exception {
|
|
|
|