Commit c5786c21 authored by Phillip Webb's avatar Phillip Webb

Polish

parent f96d73f3
...@@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory; ...@@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.util.Assert; import org.springframework.util.Assert;
/** /**
* {@link MeterFilter} to log only once a warning message and deny {@link Meter.Id}. * {@link MeterFilter} to log only once a warning message and deny {@code Meter.Id}.
* *
* @author Jon Schneider * @author Jon Schneider
* @author Dmytro Nosan * @author Dmytro Nosan
......
...@@ -167,13 +167,6 @@ public class CloudFoundryWebFluxEndpointIntegrationTests { ...@@ -167,13 +167,6 @@ public class CloudFoundryWebFluxEndpointIntegrationTests {
.jsonPath("_links.test-part").doesNotExist())); .jsonPath("_links.test-part").doesNotExist()));
} }
private AnnotationConfigReactiveWebServerApplicationContext createApplicationContext(
Class<?>... config) {
AnnotationConfigReactiveWebServerApplicationContext context = new AnnotationConfigReactiveWebServerApplicationContext();
context.register(config);
return context;
}
private ContextConsumer<AssertableReactiveWebApplicationContext> withWebTestClient( private ContextConsumer<AssertableReactiveWebApplicationContext> withWebTestClient(
Consumer<WebTestClient> clientConsumer) { Consumer<WebTestClient> clientConsumer) {
return (context) -> { return (context) -> {
......
...@@ -91,7 +91,7 @@ public class PathMappedEndpointsTests { ...@@ -91,7 +91,7 @@ public class PathMappedEndpointsTests {
@Test @Test
public void getPathWhenMissingIdShouldReturnNull() { public void getPathWhenMissingIdShouldReturnNull() {
PathMappedEndpoints mapped = createTestMapped(null); PathMappedEndpoints mapped = createTestMapped(null);
assertThat(mapped.getRootPath("xx")).isNull(); assertThat(mapped.getPath("xx")).isNull();
} }
@Test @Test
......
...@@ -48,7 +48,7 @@ public class MetricsWebFilterTests { ...@@ -48,7 +48,7 @@ public class MetricsWebFilterTests {
MockClock clock = new MockClock(); MockClock clock = new MockClock();
this.registry = new SimpleMeterRegistry(SimpleConfig.DEFAULT, clock); this.registry = new SimpleMeterRegistry(SimpleConfig.DEFAULT, clock);
this.webFilter = new MetricsWebFilter(this.registry, this.webFilter = new MetricsWebFilter(this.registry,
new DefaultWebFluxTagsProvider(), REQUEST_METRICS_NAME); new DefaultWebFluxTagsProvider(), REQUEST_METRICS_NAME, true);
} }
@Test @Test
......
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