@Test @SuppressWarnings("unchecked") public void builder_constructor_sets_up_options_as_specified_in_the_builder() { int expectedOrder = 42; HttpTagAndSpanNamingStrategy<ServerWebExchange, ServerHttpResponse> expectedTagStrategyMock = mock(HttpTagAndSpanNamingStrategy.class); HttpTagAndSpanNamingAdapter<ServerWebExchange, ServerHttpResponse> expectedTagAdapterMock = mock(HttpTagAndSpanNamingAdapter.class); List<String> expectedUserIdHeaderKeys = Arrays.asList("foo", "bar"); WingtipsSpringWebfluxWebFilter.Builder builder = WingtipsSpringWebfluxWebFilter .newBuilder() .withOrder(expectedOrder) .withTagAndNamingStrategy(expectedTagStrategyMock) .withTagAndNamingAdapter(expectedTagAdapterMock) .withUserIdHeaderKeys(expectedUserIdHeaderKeys); WingtipsSpringWebfluxWebFilter impl = new WingtipsSpringWebfluxWebFilter(builder); assertThat(impl.order).isEqualTo(expectedOrder); assertThat(impl.tagAndNamingStrategy).isSameAs(expectedTagStrategyMock); assertThat(impl.tagAndNamingAdapter).isSameAs(expectedTagAdapterMock); assertThat(impl.userIdHeaderKeys).isEqualTo(expectedUserIdHeaderKeys); verifyUserIdHeaderKeysIsUnmodifiable(impl); }
public static Builder newBuilder() { return new Builder(); }
WingtipsSpringWebfluxWebFilter implements WebFilter, Ordered { public static Builder newBuilder() { return new Builder(); } }
WingtipsSpringWebfluxWebFilter implements WebFilter, Ordered { public static Builder newBuilder() { return new Builder(); } WingtipsSpringWebfluxWebFilter();  WingtipsSpringWebfluxWebFilter(Builder builder); }
WingtipsSpringWebfluxWebFilter implements WebFilter, Ordered { public static Builder newBuilder() { return new Builder(); } WingtipsSpringWebfluxWebFilter();  WingtipsSpringWebfluxWebFilter(Builder builder); static Builder newBuilder(); @Override @NotNull Mono<Void> filter(@NotNull ServerWebExchange exchange, @NotNull WebFilterChain chain); @Override int getOrder(); void setOrder(int order); }
WingtipsSpringWebfluxWebFilter implements WebFilter, Ordered { public static Builder newBuilder() { return new Builder(); } WingtipsSpringWebfluxWebFilter();  WingtipsSpringWebfluxWebFilter(Builder builder); static Builder newBuilder(); @Override @NotNull Mono<Void> filter(@NotNull ServerWebExchange exchange, @NotNull WebFilterChain chain); @Override int getOrder(); void setOrder(int order);  }