Skip to content

Commit bdd541b

Browse files
committed
Merge branch '1.5.x' into 2.0.x
2 parents 5ae061f + bb0550a commit bdd541b

File tree

1 file changed

+2
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,13 @@ public void connectionToEntryWithEncodedSpaceNestedEntry() throws Exception {
150150
.hasSameContentAs(new ByteArrayInputStream(new byte[] { 3 }));
151151
}
152152

153-
@Test(expected = FileNotFoundException.class)
153+
@Test
154154
public void connectionToEntryUsingWrongAbsoluteUrlForEntryFromNestedJarFile()
155155
throws Exception {
156156
URL url = new URL("jar:file:" + getAbsolutePath() + "!/w.jar!/3.dat");
157157
JarFile nested = this.jarFile
158158
.getNestedJarFile(this.jarFile.getEntry("nested.jar"));
159+
this.thrown.expect(FileNotFoundException.class);
159160
JarURLConnection.get(url, nested).getInputStream();
160161
}
161162

0 commit comments

Comments
 (0)