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
bb0550ab
Commit
bb0550ab
authored
May 31, 2018
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
55d0611b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
JarURLConnectionTests.java
...pringframework/boot/loader/jar/JarURLConnectionTests.java
+2
-1
No files found.
spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarURLConnectionTests.java
View file @
bb0550ab
...
...
@@ -153,12 +153,13 @@ public class JarURLConnectionTests {
.
hasSameContentAs
(
new
ByteArrayInputStream
(
new
byte
[]
{
3
}));
}
@Test
(
expected
=
FileNotFoundException
.
class
)
@Test
public
void
connectionToEntryUsingWrongAbsoluteUrlForEntryFromNestedJarFile
()
throws
Exception
{
URL
url
=
new
URL
(
"jar:file:"
+
getAbsolutePath
()
+
"!/w.jar!/3.dat"
);
JarFile
nested
=
this
.
jarFile
.
getNestedJarFile
(
this
.
jarFile
.
getEntry
(
"nested.jar"
));
this
.
thrown
.
expect
(
FileNotFoundException
.
class
);
JarURLConnection
.
get
(
url
,
nested
).
getInputStream
();
}
...
...
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