Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
0dd38a72
Commit
0dd38a72
authored
Aug 19, 2020
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.2.x' into 2.3.x
parents
9a374f7d
3fe2005e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
JarFileWrapperTests.java
.../springframework/boot/loader/jar/JarFileWrapperTests.java
+7
-1
No files found.
spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarFileWrapperTests.java
View file @
0dd38a72
...
@@ -30,6 +30,7 @@ import java.util.jar.JarOutputStream;
...
@@ -30,6 +30,7 @@ import java.util.jar.JarOutputStream;
import
java.util.jar.Manifest
;
import
java.util.jar.Manifest
;
import
java.util.zip.ZipEntry
;
import
java.util.zip.ZipEntry
;
import
org.junit.jupiter.api.AfterEach
;
import
org.junit.jupiter.api.BeforeEach
;
import
org.junit.jupiter.api.BeforeEach
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.io.TempDir
;
import
org.junit.jupiter.api.io.TempDir
;
...
@@ -51,11 +52,16 @@ class JarFileWrapperTests {
...
@@ -51,11 +52,16 @@ class JarFileWrapperTests {
private
JarFileWrapper
wrapper
;
private
JarFileWrapper
wrapper
;
@BeforeEach
@BeforeEach
void
setup
(
@TempDir
File
temp
)
throws
IO
Exception
{
void
setup
(
@TempDir
File
temp
)
throws
Exception
{
this
.
parent
=
new
SpyJarFile
(
createTempJar
(
temp
));
this
.
parent
=
new
SpyJarFile
(
createTempJar
(
temp
));
this
.
wrapper
=
new
JarFileWrapper
(
this
.
parent
);
this
.
wrapper
=
new
JarFileWrapper
(
this
.
parent
);
}
}
@AfterEach
void
cleanup
()
throws
Exception
{
this
.
parent
.
close
();
}
private
File
createTempJar
(
File
temp
)
throws
IOException
{
private
File
createTempJar
(
File
temp
)
throws
IOException
{
File
file
=
new
File
(
temp
,
"temp.jar"
);
File
file
=
new
File
(
temp
,
"temp.jar"
);
new
JarOutputStream
(
new
FileOutputStream
(
file
)).
close
();
new
JarOutputStream
(
new
FileOutputStream
(
file
)).
close
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment