Add missing ExpectedException rule

Add ExpectedException rule which was missed from the 1.5.x merge.
This commit is contained in:
Phillip Webb 2018-05-30 22:52:25 -07:00
parent f8ec2e6176
commit 3751968ecd
1 changed files with 4 additions and 0 deletions

View File

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