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
6387f36e
Commit
6387f36e
authored
Oct 06, 2015
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around MockMvc bug (SPR-13079) that has only been fixed in 4.2
See gh-4098
parent
b8b4ea48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
MetricFilterAutoConfigurationTests.java
...ate/autoconfigure/MetricFilterAutoConfigurationTests.java
+2
-0
No files found.
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfigurationTests.java
View file @
6387f36e
...
@@ -228,6 +228,8 @@ public class MetricFilterAutoConfigurationTests {
...
@@ -228,6 +228,8 @@ public class MetricFilterAutoConfigurationTests {
.
andExpect
(
request
().
attribute
(
attributeName
,
is
(
notNullValue
())))
.
andExpect
(
request
().
attribute
(
attributeName
,
is
(
notNullValue
())))
.
andReturn
();
.
andReturn
();
latch
.
countDown
();
latch
.
countDown
();
// Work around SPR-13079 which has not been fixed in 4.1.x
result
.
getAsyncResult
();
mvc
.
perform
(
asyncDispatch
(
result
)).
andExpect
(
status
().
isCreated
())
mvc
.
perform
(
asyncDispatch
(
result
)).
andExpect
(
status
().
isCreated
())
.
andExpect
(
request
().
attribute
(
attributeName
,
is
(
nullValue
())));
.
andExpect
(
request
().
attribute
(
attributeName
,
is
(
nullValue
())));
verify
(
context
.
getBean
(
CounterService
.
class
)).
increment
(
"status.201.create"
);
verify
(
context
.
getBean
(
CounterService
.
class
)).
increment
(
"status.201.create"
);
...
...
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