Commit 2cc73250 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish

parent 49a72b00
...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment