Skip to content

Commit 5c708ae

Browse files
committed
Merge branch '1.4.x' into 1.5.x
2 parents c22230a + 5b4f9ed commit 5c708ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/PropertiesLauncherTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,19 @@ public class PropertiesLauncherTests {
6161
@Rule
6262
public TemporaryFolder temporaryFolder = new TemporaryFolder();
6363

64+
private ClassLoader contextClassLoader;
65+
6466
@Before
6567
public void setup() throws IOException {
68+
this.contextClassLoader = Thread.currentThread().getContextClassLoader();
6669
MockitoAnnotations.initMocks(this);
6770
System.setProperty("loader.home",
6871
new File("src/test/resources").getAbsolutePath());
6972
}
7073

7174
@After
7275
public void close() {
76+
Thread.currentThread().setContextClassLoader(this.contextClassLoader);
7377
System.clearProperty("loader.home");
7478
System.clearProperty("loader.path");
7579
System.clearProperty("loader.main");

0 commit comments

Comments
 (0)