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
2cdceb92
Commit
2cdceb92
authored
Aug 03, 2019
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
b29e81fc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
WebMvcMetricsFilterTests.java
...actuate/metrics/web/servlet/WebMvcMetricsFilterTests.java
+1
-1
WebMvcMetricsIntegrationTests.java
...te/metrics/web/servlet/WebMvcMetricsIntegrationTests.java
+2
-3
TestJsonConverter.java
...ot/configurationprocessor/metadata/TestJsonConverter.java
+1
-1
NettyWebServer.java
...ringframework/boot/web/embedded/netty/NettyWebServer.java
+3
-1
No files found.
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetricsFilterTests.java
View file @
2cdceb92
...
...
@@ -186,7 +186,7 @@ class WebMvcMetricsFilterTests {
void
streamingError
()
throws
Exception
{
MvcResult
result
=
this
.
mvc
.
perform
(
get
(
"/api/c1/streamingError"
)).
andExpect
(
request
().
asyncStarted
())
.
andReturn
();
assertThatCode
(()
->
this
.
mvc
.
perform
(
asyncDispatch
(
result
)).
andExpect
(
status
().
isOk
()
));
this
.
mvc
.
perform
(
asyncDispatch
(
result
)).
andExpect
(
status
().
isOk
(
));
assertThat
(
this
.
registry
.
get
(
"http.server.requests"
).
tags
(
"exception"
,
"IOException"
).
timer
().
count
())
.
isEqualTo
(
1L
);
}
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetricsIntegrationTests.java
View file @
2cdceb92
...
...
@@ -46,7 +46,6 @@ import org.springframework.web.context.WebApplicationContext;
import
org.springframework.web.servlet.config.annotation.EnableWebMvc
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThatCode
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
request
.
MockMvcRequestBuilders
.
get
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
...
...
@@ -84,8 +83,8 @@ class WebMvcMetricsIntegrationTests {
}
@Test
void
rethrownExceptionIsRecordedInMetricTag
()
{
assertThatCode
(()
->
this
.
mvc
.
perform
(
get
(
"/api/rethrownError"
)).
andExpect
(
status
().
is5xxServerError
()
));
void
rethrownExceptionIsRecordedInMetricTag
()
throws
Exception
{
this
.
mvc
.
perform
(
get
(
"/api/rethrownError"
)).
andExpect
(
status
().
is5xxServerError
(
));
assertThat
(
this
.
registry
.
get
(
"http.server.requests"
).
tags
(
"exception"
,
"Exception2"
,
"status"
,
"500"
).
timer
()
.
count
()).
isEqualTo
(
1L
);
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/metadata/TestJsonConverter.java
View file @
2cdceb92
...
...
@@ -31,7 +31,7 @@ public class TestJsonConverter extends JsonConverter {
@Override
public
JSONArray
toJsonArray
(
ConfigurationMetadata
metadata
,
ItemType
itemType
)
throws
Exception
{
return
toJsonArray
(
metadata
,
itemType
);
return
super
.
toJsonArray
(
metadata
,
itemType
);
}
@Override
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/NettyWebServer.java
View file @
2cdceb92
...
...
@@ -106,7 +106,9 @@ public class NettyWebServer implements WebServer {
}
private
void
applyRouteProviders
(
HttpServerRoutes
routes
)
{
this
.
routeProviders
.
forEach
((
provider
)
->
provider
.
apply
(
routes
));
for
(
NettyRouteProvider
provider
:
this
.
routeProviders
)
{
routes
=
provider
.
apply
(
routes
);
}
routes
.
route
(
ALWAYS
,
this
.
handlerAdapter
);
}
...
...
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