Commit 3751968e authored by Phillip Webb's avatar Phillip Webb

Add missing ExpectedException rule

Add ExpectedException rule which was missed from the 1.5.x merge.
parent f8ec2e61
...@@ -24,6 +24,7 @@ import java.net.URL; ...@@ -24,6 +24,7 @@ import java.net.URL;
import org.junit.Before; import org.junit.Before;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.rules.TemporaryFolder; import org.junit.rules.TemporaryFolder;
import org.springframework.boot.loader.TestJarCreator; import org.springframework.boot.loader.TestJarCreator;
...@@ -43,6 +44,9 @@ public class JarURLConnectionTests { ...@@ -43,6 +44,9 @@ public class JarURLConnectionTests {
@Rule @Rule
public TemporaryFolder temporaryFolder = new TemporaryFolder(new File("target")); public TemporaryFolder temporaryFolder = new TemporaryFolder(new File("target"));
@Rule
public ExpectedException thrown = ExpectedException.none();
private File rootJarFile; private File rootJarFile;
private JarFile jarFile; private JarFile jarFile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment