Merge branch '1.5.x' into 2.0.x

This commit is contained in:
Phillip Webb 2018-05-30 20:29:03 -07:00
commit bdd541b2cc
1 changed files with 2 additions and 1 deletions

View File

@ -150,12 +150,13 @@ public class JarURLConnectionTests {
.hasSameContentAs(new ByteArrayInputStream(new byte[] { 3 }));
}
@Test(expected = FileNotFoundException.class)
@Test
public void connectionToEntryUsingWrongAbsoluteUrlForEntryFromNestedJarFile()
throws Exception {
URL url = new URL("jar:file:" + getAbsolutePath() + "!/w.jar!/3.dat");
JarFile nested = this.jarFile
.getNestedJarFile(this.jarFile.getEntry("nested.jar"));
this.thrown.expect(FileNotFoundException.class);
JarURLConnection.get(url, nested).getInputStream();
}