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
bcbf7b55
Commit
bcbf7b55
authored
Oct 02, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ChangeableUrlsTests to cope with URL-like Windows file paths
Closes gh-10268
parent
858b092a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ChangeableUrlsTests.java
...gframework/boot/devtools/restart/ChangeableUrlsTests.java
+2
-4
No files found.
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/ChangeableUrlsTests.java
View file @
bcbf7b55
...
@@ -75,12 +75,10 @@ public class ChangeableUrlsTests {
...
@@ -75,12 +75,10 @@ public class ChangeableUrlsTests {
@Test
@Test
public
void
urlsFromJarClassPathAreConsidered
()
throws
Exception
{
public
void
urlsFromJarClassPathAreConsidered
()
throws
Exception
{
File
relative
=
this
.
temporaryFolder
.
newFolder
();
File
relative
=
this
.
temporaryFolder
.
newFolder
();
File
absoluteFile
=
this
.
temporaryFolder
.
newFolder
();
URL
absoluteUrl
=
this
.
temporaryFolder
.
newFolder
().
toURI
().
toURL
();
URL
absoluteUrl
=
this
.
temporaryFolder
.
newFolder
().
toURI
().
toURL
();
File
jarWithClassPath
=
makeJarFileWithUrlsInManifestClassPath
(
File
jarWithClassPath
=
makeJarFileWithUrlsInManifestClassPath
(
"project-core/target/classes/"
,
"project-web/target/classes/"
,
"project-core/target/classes/"
,
"project-web/target/classes/"
,
"does-not-exist/target/classes"
,
relative
.
getName
()
+
"/"
,
"does-not-exist/target/classes"
,
relative
.
getName
()
+
"/"
,
absoluteUrl
);
absoluteFile
.
getAbsolutePath
()
+
"/"
,
absoluteUrl
);
new
File
(
jarWithClassPath
.
getParentFile
(),
"project-core/target/classes"
)
new
File
(
jarWithClassPath
.
getParentFile
(),
"project-core/target/classes"
)
.
mkdirs
();
.
mkdirs
();
new
File
(
jarWithClassPath
.
getParentFile
(),
"project-web/target/classes"
).
mkdirs
();
new
File
(
jarWithClassPath
.
getParentFile
(),
"project-web/target/classes"
).
mkdirs
();
...
@@ -90,7 +88,7 @@ public class ChangeableUrlsTests {
...
@@ -90,7 +88,7 @@ public class ChangeableUrlsTests {
assertThat
(
urls
.
toList
()).
containsExactly
(
assertThat
(
urls
.
toList
()).
containsExactly
(
new
URL
(
jarWithClassPath
.
toURI
().
toURL
(),
"project-core/target/classes/"
),
new
URL
(
jarWithClassPath
.
toURI
().
toURL
(),
"project-core/target/classes/"
),
new
URL
(
jarWithClassPath
.
toURI
().
toURL
(),
"project-web/target/classes/"
),
new
URL
(
jarWithClassPath
.
toURI
().
toURL
(),
"project-web/target/classes/"
),
relative
.
toURI
().
toURL
(),
absolute
File
.
toURI
().
toURL
(),
absolute
Url
);
relative
.
toURI
().
toURL
(),
absoluteUrl
);
}
}
private
URL
makeUrl
(
String
name
)
throws
IOException
{
private
URL
makeUrl
(
String
name
)
throws
IOException
{
...
...
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