Browse Source

Merge branch '1.4.x' into 1.5.x

pull/9258/merge
Andy Wilkinson 9 years ago
parent
commit
5c708ae712
  1. 4
      spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/PropertiesLauncherTests.java

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

@ -61,8 +61,11 @@ public class PropertiesLauncherTests { @@ -61,8 +61,11 @@ public class PropertiesLauncherTests {
@Rule
public TemporaryFolder temporaryFolder = new TemporaryFolder();
private ClassLoader contextClassLoader;
@Before
public void setup() throws IOException {
this.contextClassLoader = Thread.currentThread().getContextClassLoader();
MockitoAnnotations.initMocks(this);
System.setProperty("loader.home",
new File("src/test/resources").getAbsolutePath());
@ -70,6 +73,7 @@ public class PropertiesLauncherTests { @@ -70,6 +73,7 @@ public class PropertiesLauncherTests {
@After
public void close() {
Thread.currentThread().setContextClassLoader(this.contextClassLoader);
System.clearProperty("loader.home");
System.clearProperty("loader.path");
System.clearProperty("loader.main");

Loading…
Cancel
Save