Polishing

This commit is contained in:
Sam Brannen
2022-05-03 15:46:07 +02:00
parent c68665980f
commit 365a18c9c2
34 changed files with 32 additions and 67 deletions

View File

@@ -26,9 +26,8 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Unit tests for {@link RequestHeaderArgumentResolver}.
* Unit tests for {@link CookieValueArgumentResolver}.
* <p>For base class functionality, see {@link NamedValueArgumentResolverTests}.
*
* @author Rossen Stoyanchev

View File

@@ -24,7 +24,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
/**
* Tests for {@link HttpMethodArgumentResolver}.
*

View File

@@ -16,7 +16,6 @@
package org.springframework.web.service.invoker;
import java.net.URI;
import org.junit.jupiter.api.Test;
@@ -30,7 +29,6 @@ import org.springframework.web.util.UriComponentsBuilder;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Unit tests for {@link HttpRequestValues}.
*

View File

@@ -16,7 +16,6 @@
package org.springframework.web.service.invoker;
import io.reactivex.rxjava3.core.Completable;
import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.core.Single;
@@ -40,12 +39,11 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.http.MediaType.APPLICATION_CBOR_VALUE;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
/**
* Tests for {@link HttpServiceMethod} with a test {@link TestHttpClientAdapter}
* that stubs the client invocations.
*
* <p>The tests do not create nor invoke {@code HttpServiceMethod} directly but
* <p>The tests do not create or invoke {@code HttpServiceMethod} directly but
* rather use {@link HttpServiceProxyFactory} to create a service proxy in order to
* use a strongly typed interface without the need for class casts.
*

View File

@@ -41,7 +41,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
/**
* Unit tests for {@link AbstractNamedValueArgumentResolver} through a
* {@link TestValue @TestValue} annotation and {@link TestNamedValueArgumentResolver}.
@@ -230,7 +229,7 @@ class NamedValueArgumentResolverTests {
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface TestValue {
@interface TestValue {
@AliasFor("name")
String value() default "";

View File

@@ -24,7 +24,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link PathVariableArgumentResolver}.
* <p>For base class functionality, see {@link NamedValueArgumentResolverTests}.

View File

@@ -30,7 +30,6 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
/**
* Unit tests for {@link RequestBodyArgumentResolver}.
*
@@ -63,6 +62,7 @@ public class RequestBodyArgumentResolverTests {
}
@Test
@SuppressWarnings("unchecked")
void singleBody() {
String bodyValue = "bodyValue";
this.service.executeSingle(Single.just(bodyValue));

View File

@@ -26,7 +26,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Unit tests for {@link RequestHeaderArgumentResolver}.
* <p>For base class functionality, see {@link NamedValueArgumentResolverTests}.

View File

@@ -24,7 +24,6 @@ import org.springframework.web.service.annotation.PostExchange;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Unit tests for {@link RequestParamArgumentResolver}.
*

View File

@@ -26,7 +26,6 @@ import org.springframework.lang.Nullable;
import static org.assertj.core.api.Assertions.assertThat;
/**
* {@link HttpClientAdapter} with stubbed responses.
*

View File

@@ -25,7 +25,6 @@ import org.springframework.web.service.annotation.GetExchange;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
/**
* Unit tests for {@link UrlArgumentResolver}.
*