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
e0405565
Commit
e0405565
authored
Jan 08, 2020
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x' into 2.2.x
Closes gh-19567
parents
82dc7bcc
3fb1bb74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
WebMvcEndpointExposureIntegrationTests.java
...tegrationtest/WebMvcEndpointExposureIntegrationTests.java
+5
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/WebMvcEndpointExposureIntegrationTests.java
View file @
e0405565
...
@@ -54,6 +54,7 @@ import org.springframework.http.HttpStatus;
...
@@ -54,6 +54,7 @@ import org.springframework.http.HttpStatus;
import
org.springframework.test.web.reactive.server.EntityExchangeResult
;
import
org.springframework.test.web.reactive.server.EntityExchangeResult
;
import
org.springframework.test.web.reactive.server.WebTestClient
;
import
org.springframework.test.web.reactive.server.WebTestClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.reactive.function.client.ExchangeStrategies
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
...
@@ -164,7 +165,10 @@ class WebMvcEndpointExposureIntegrationTests {
...
@@ -164,7 +165,10 @@ class WebMvcEndpointExposureIntegrationTests {
private
WebTestClient
createClient
(
AssertableWebApplicationContext
context
)
{
private
WebTestClient
createClient
(
AssertableWebApplicationContext
context
)
{
int
port
=
context
.
getSourceApplicationContext
(
ServletWebServerApplicationContext
.
class
).
getWebServer
()
int
port
=
context
.
getSourceApplicationContext
(
ServletWebServerApplicationContext
.
class
).
getWebServer
()
.
getPort
();
.
getPort
();
return
WebTestClient
.
bindToServer
().
baseUrl
(
"http://localhost:"
+
port
).
build
();
ExchangeStrategies
exchangeStrategies
=
ExchangeStrategies
.
builder
()
.
codecs
((
configurer
)
->
configurer
.
defaultCodecs
().
maxInMemorySize
(
512
*
1024
)).
build
();
return
WebTestClient
.
bindToServer
().
baseUrl
(
"http://localhost:"
+
port
).
exchangeStrategies
(
exchangeStrategies
)
.
build
();
}
}
private
boolean
isExposed
(
WebTestClient
client
,
HttpMethod
method
,
String
path
)
throws
Exception
{
private
boolean
isExposed
(
WebTestClient
client
,
HttpMethod
method
,
String
path
)
throws
Exception
{
...
...
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