Add missing ExpectedException rule

Add ExpectedException rule which was missed from the 1.5.x merge.
pull/13312/merge
Phillip Webb 7 years ago
parent f8ec2e6176
commit 3751968ecd

@ -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;

Loading…
Cancel
Save