From 3751968ecd467194d1071d20c1f07c336cd243f4 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 30 May 2018 22:52:25 -0700 Subject: [PATCH] Add missing ExpectedException rule Add ExpectedException rule which was missed from the 1.5.x merge. --- .../boot/loader/jar/JarURLConnectionTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java index 38ae048837..f98b5d43be 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java @@ -24,6 +24,7 @@ import java.net.URL; import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; import org.springframework.boot.loader.TestJarCreator; @@ -43,6 +44,9 @@ public class JarURLConnectionTests { @Rule public TemporaryFolder temporaryFolder = new TemporaryFolder(new File("target")); + @Rule + public ExpectedException thrown = ExpectedException.none(); + private File rootJarFile; private JarFile jarFile;