From 7978c3d75cb80fa45a4dad7c5380fed50f847a36 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Fri, 20 Sep 2019 15:04:29 -0700 Subject: [PATCH] Polish --- .../DevToolsHomePropertiesPostProcessorTests.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java index 009d078760..65e7eb29da 100644 --- a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java +++ b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java @@ -99,14 +99,12 @@ class DevToolsHomePropertiesPostProcessorTests { Properties properties = new Properties(); properties.put("abc", "def"); properties.put("bar", "baz"); - OutputStream out = new FileOutputStream( - new File(this.home + "/.config/spring-boot/", "spring-boot-devtools.yaml")); + OutputStream out = new FileOutputStream(new File(this.configDir, "spring-boot-devtools.yaml")); properties.store(out, null); out.close(); Properties properties2 = new Properties(); properties2.put("abc", "jkl"); - OutputStream out2 = new FileOutputStream( - new File(this.home + "/.config/spring-boot/", "spring-boot-devtools.properties")); + OutputStream out2 = new FileOutputStream(new File(this.configDir, "spring-boot-devtools.properties")); properties2.store(out2, null); out2.close(); ConfigurableEnvironment environment = getPostProcessedEnvironment(); @@ -122,8 +120,7 @@ class DevToolsHomePropertiesPostProcessorTests { writeFile(properties, ".spring-boot-devtools.properties"); Properties properties2 = new Properties(); properties2.put("abc", "jkl"); - OutputStream out2 = new FileOutputStream( - new File(this.home + "/.config/spring-boot/", "spring-boot-devtools.properties")); + OutputStream out2 = new FileOutputStream(new File(this.configDir, "spring-boot-devtools.properties")); properties2.store(out2, null); out2.close(); ConfigurableEnvironment environment = getPostProcessedEnvironment(); @@ -139,8 +136,7 @@ class DevToolsHomePropertiesPostProcessorTests { writeFile(properties, ".spring-boot-devtools.properties"); Properties properties2 = new Properties(); properties2.put("abc", "jkl"); - OutputStream out2 = new FileOutputStream( - new File(this.home + "/.config/spring-boot/", "spring-boot-devtools.yml")); + OutputStream out2 = new FileOutputStream(new File(this.configDir, "spring-boot-devtools.yml")); properties2.store(out2, null); out2.close(); ConfigurableEnvironment environment = getPostProcessedEnvironment();