File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -166,8 +166,8 @@ void fallbackToJdksJarUrlStreamHandler(@TempDir File tempDir) throws Exception {
166
166
}
167
167
168
168
@ 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" );
171
171
TestJarCreator .createTestJar (testJar );
172
172
URL url = new URL (null , "jar:" + testJar .toURI ().toURL () + "!/nested.jar!/3.dat" , this .handler );
173
173
JarURLConnection connection = (JarURLConnection ) url .openConnection ();
@@ -180,8 +180,8 @@ public void whenJarHasAPlusInItsPathConnectionJarFileMatchesOriginalJarFile() th
180
180
}
181
181
182
182
@ 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" );
185
185
TestJarCreator .createTestJar (testJar );
186
186
URL url = new URL (null , "jar:" + testJar .toURI ().toURL () + "!/nested.jar!/3.dat" , this .handler );
187
187
JarURLConnection connection = (JarURLConnection ) url .openConnection ();
You can’t perform that action at this time.
0 commit comments