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
2cc73250
Commit
2cc73250
authored
Feb 02, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
49a72b00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
MeterRegistryPostProcessorTests.java
...utoconfigure/metrics/MeterRegistryPostProcessorTests.java
+4
-5
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MeterRegistryPostProcessorTests.java
View file @
2cc73250
...
@@ -89,8 +89,7 @@ public class MeterRegistryPostProcessorTests {
...
@@ -89,8 +89,7 @@ public class MeterRegistryPostProcessorTests {
this
.
customizers
.
add
(
this
.
mockCustomizer
);
this
.
customizers
.
add
(
this
.
mockCustomizer
);
MeterRegistryPostProcessor
processor
=
new
MeterRegistryPostProcessor
(
MeterRegistryPostProcessor
processor
=
new
MeterRegistryPostProcessor
(
this
.
binders
,
this
.
filters
,
this
.
customizers
,
false
);
this
.
binders
,
this
.
filters
,
this
.
customizers
,
false
);
assertThat
(
processor
.
postProcessAfterInitialization
(
new
CompositeMeterRegistry
(),
processor
.
postProcessAfterInitialization
(
new
CompositeMeterRegistry
(),
"name"
);
"name"
));
verifyZeroInteractions
(
this
.
mockBinder
,
this
.
mockCustomizer
);
verifyZeroInteractions
(
this
.
mockBinder
,
this
.
mockCustomizer
);
}
}
...
@@ -99,7 +98,7 @@ public class MeterRegistryPostProcessorTests {
...
@@ -99,7 +98,7 @@ public class MeterRegistryPostProcessorTests {
this
.
customizers
.
add
(
this
.
mockCustomizer
);
this
.
customizers
.
add
(
this
.
mockCustomizer
);
MeterRegistryPostProcessor
processor
=
new
MeterRegistryPostProcessor
(
MeterRegistryPostProcessor
processor
=
new
MeterRegistryPostProcessor
(
this
.
binders
,
this
.
filters
,
this
.
customizers
,
false
);
this
.
binders
,
this
.
filters
,
this
.
customizers
,
false
);
assertThat
(
processor
.
postProcessAfterInitialization
(
this
.
mockRegistry
,
"name"
)
);
processor
.
postProcessAfterInitialization
(
this
.
mockRegistry
,
"name"
);
verify
(
this
.
mockCustomizer
).
customize
(
this
.
mockRegistry
);
verify
(
this
.
mockCustomizer
).
customize
(
this
.
mockRegistry
);
}
}
...
@@ -108,7 +107,7 @@ public class MeterRegistryPostProcessorTests {
...
@@ -108,7 +107,7 @@ public class MeterRegistryPostProcessorTests {
this
.
filters
.
add
(
this
.
mockFilter
);
this
.
filters
.
add
(
this
.
mockFilter
);
MeterRegistryPostProcessor
processor
=
new
MeterRegistryPostProcessor
(
MeterRegistryPostProcessor
processor
=
new
MeterRegistryPostProcessor
(
this
.
binders
,
this
.
filters
,
this
.
customizers
,
false
);
this
.
binders
,
this
.
filters
,
this
.
customizers
,
false
);
assertThat
(
processor
.
postProcessAfterInitialization
(
this
.
mockRegistry
,
"name"
)
);
processor
.
postProcessAfterInitialization
(
this
.
mockRegistry
,
"name"
);
verify
(
this
.
mockConfig
).
meterFilter
(
this
.
mockFilter
);
verify
(
this
.
mockConfig
).
meterFilter
(
this
.
mockFilter
);
}
}
...
@@ -117,7 +116,7 @@ public class MeterRegistryPostProcessorTests {
...
@@ -117,7 +116,7 @@ public class MeterRegistryPostProcessorTests {
this
.
binders
.
add
(
this
.
mockBinder
);
this
.
binders
.
add
(
this
.
mockBinder
);
MeterRegistryPostProcessor
processor
=
new
MeterRegistryPostProcessor
(
MeterRegistryPostProcessor
processor
=
new
MeterRegistryPostProcessor
(
this
.
binders
,
this
.
filters
,
this
.
customizers
,
false
);
this
.
binders
,
this
.
filters
,
this
.
customizers
,
false
);
assertThat
(
processor
.
postProcessAfterInitialization
(
this
.
mockRegistry
,
"name"
)
);
processor
.
postProcessAfterInitialization
(
this
.
mockRegistry
,
"name"
);
verify
(
this
.
mockBinder
).
bindTo
(
this
.
mockRegistry
);
verify
(
this
.
mockBinder
).
bindTo
(
this
.
mockRegistry
);
}
}
...
...
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