From bb0550ab95c817301cf1e435abfeaa6c246eb73b Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 30 May 2018 20:28:50 -0700 Subject: [PATCH] Polish --- .../springframework/boot/loader/jar/JarURLConnectionTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java b/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java index d35faac08eb..3c9bf214bfb 100644 --- a/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java +++ b/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java @@ -153,12 +153,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(); }