SpringWebfluxClientRequestTagAdapter extends HttpTagAndSpanNamingAdapter<ClientRequest, ClientResponse> { @Override public @Nullable String getRequestUrl(@Nullable ClientRequest request) { if (request == null || request.url() == null) { return null; } return request.url().toString(); }  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
    );  }
@Test public void getRequestUrl_returns_request_URI_toString() { URI expectedFullUri = URI.create("/foo/bar/" + UUID.randomUUID().toString() + "?stuff=things"); doReturn(expectedFullUri).when(requestMock).url(); String result = implSpy.getRequestUrl(requestMock); assertThat(result).isEqualTo(expectedFullUri.toString()); }
@Test public void getRequestUrl_returns_null_when_passed_null() { assertThat(implSpy.getRequestUrl(null)).isNull(); }
@Test public void getRequestUrl_returns_null_when_request_url_is_null() { doReturn(null).when(requestMock).url(); assertThat(implSpy.getRequestUrl(requestMock)).isNull(); }