SpringWebfluxClientRequestTagAdapter extends HttpTagAndSpanNamingAdapter<ClientRequest, ClientResponse> { @Override public @Nullable String getRequestHttpMethod(@Nullable ClientRequest request) { if (request == null || request.method() == null) { return null; } return request.method().name(); }  static SpringWebfluxClientRequestTagAdapter getDefaultInstance(); @Override @Nullable String getRequestUrl(@Nullable ClientRequest request); @Override @Nullable Integer getResponseHttpStatus(@Nullable ClientResponse response); @Override @Nullable String getRequestHttpMethod(@Nullable ClientRequest request); @Override @Nullable String getRequestPath(@Nullable ClientRequest request); @Override @Nullable String getRequestUriPathTemplate(
        @Nullable ClientRequest request,
        @Nullable ClientResponse response
    ); @Override @Nullable String getHeaderSingleValue(@Nullable ClientRequest request, @NotNull String headerKey); @Override @Nullable List<String> getHeaderMultipleValue(
        @Nullable ClientRequest request, @NotNull String headerKey
    ); @Override @Nullable String getSpanHandlerTagValue(
        @Nullable ClientRequest request, @Nullable ClientResponse response
    );  }
@DataProvider(value = { "GET | GET", "HEAD | HEAD", "POST | POST", "PUT | PUT", "PATCH | PATCH", "DELETE | DELETE", "OPTIONS | OPTIONS", "TRACE | TRACE", "null | null" }, splitBy = "\\|") @Test public void getRequestHttpMethod_works_as_expected(HttpMethod httpMethod, String expectedResult) { doReturn(httpMethod).when(requestMock).method(); String result = implSpy.getRequestHttpMethod(requestMock); assertThat(result).isEqualTo(expectedResult); }
@Test public void getRequestHttpMethod_returns_null_when_passed_null() { assertThat(implSpy.getRequestHttpMethod(null)).isNull(); }