Skip to content

Commit f36af7b

Browse files
committed
Polish
1 parent 78f51a4 commit f36af7b

File tree

1 file changed

+4
-4
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar

1 file changed

+4
-4
lines changed

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/HandlerTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ void fallbackToJdksJarUrlStreamHandler(@TempDir File tempDir) throws Exception {
166166
}
167167

168168
@Test
169-
public void whenJarHasAPlusInItsPathConnectionJarFileMatchesOriginalJarFile() throws Exception {
170-
File testJar = this.temporaryFolder.newFile("t+e+s+t.jar");
169+
void whenJarHasAPlusInItsPathConnectionJarFileMatchesOriginalJarFile(@TempDir File tempDir) throws Exception {
170+
File testJar = new File(tempDir, "t+e+s+t.jar");
171171
TestJarCreator.createTestJar(testJar);
172172
URL url = new URL(null, "jar:" + testJar.toURI().toURL() + "!/nested.jar!/3.dat", this.handler);
173173
JarURLConnection connection = (JarURLConnection) url.openConnection();
@@ -180,8 +180,8 @@ public void whenJarHasAPlusInItsPathConnectionJarFileMatchesOriginalJarFile() th
180180
}
181181

182182
@Test
183-
public void whenJarHasASpaceInItsPathConnectionJarFileMatchesOriginalJarFile() throws Exception {
184-
File testJar = this.temporaryFolder.newFile("t e s t.jar");
183+
void whenJarHasASpaceInItsPathConnectionJarFileMatchesOriginalJarFile(@TempDir File tempDir) throws Exception {
184+
File testJar = new File(tempDir, "t e s t.jar");
185185
TestJarCreator.createTestJar(testJar);
186186
URL url = new URL(null, "jar:" + testJar.toURI().toURL() + "!/nested.jar!/3.dat", this.handler);
187187
JarURLConnection connection = (JarURLConnection) url.openConnection();

0 commit comments

Comments
 (0)