Skip to content

Commit bb0550a

Browse files
committed
Polish
1 parent 55d0611 commit bb0550a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,13 @@ public void connectionToEntryWithEncodedSpaceNestedEntry() throws Exception {
153153
.hasSameContentAs(new ByteArrayInputStream(new byte[] { 3 }));
154154
}
155155

156-
@Test(expected = FileNotFoundException.class)
156+
@Test
157157
public void connectionToEntryUsingWrongAbsoluteUrlForEntryFromNestedJarFile()
158158
throws Exception {
159159
URL url = new URL("jar:file:" + getAbsolutePath() + "!/w.jar!/3.dat");
160160
JarFile nested = this.jarFile
161161
.getNestedJarFile(this.jarFile.getEntry("nested.jar"));
162+
this.thrown.expect(FileNotFoundException.class);
162163
JarURLConnection.get(url, nested).getInputStream();
163164
}
164165

0 commit comments

Comments
 (0)