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
b01c1d36
Commit
b01c1d36
authored
Jun 25, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to fix Windows CI
parent
e383d13a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
AbstractEmbeddedServletContainerFactoryTests.java
...mbedded/AbstractEmbeddedServletContainerFactoryTests.java
+8
-2
No files found.
spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java
View file @
b01c1d36
...
...
@@ -109,10 +109,12 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
this
.
container
=
factory
.
getEmbeddedServletContainer
(
exampleServletRegistration
());
this
.
container
.
start
();
int
port
=
this
.
container
.
getPort
();
this
.
container
.
stop
();
this
.
thrown
.
expect
(
IOException
.
class
);
String
response
=
getResponse
(
getLocalUrl
(
"/hello"
));
throw
new
RuntimeException
(
this
.
container
.
getPort
()
+
" "
+
response
);
String
response
=
getResponse
(
getLocalUrl
(
port
,
"/hello"
));
throw
new
RuntimeException
(
"Unexpected response on port "
+
port
+
" : "
+
response
);
}
@Test
...
...
@@ -302,6 +304,10 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
return
"http://localhost:"
+
this
.
container
.
getPort
()
+
resourcePath
;
}
protected
String
getLocalUrl
(
int
port
,
String
resourcePath
)
{
return
"http://localhost:"
+
port
+
resourcePath
;
}
protected
String
getResponse
(
String
url
)
throws
IOException
,
URISyntaxException
{
ClientHttpResponse
response
=
getClientResponse
(
url
);
try
{
...
...
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