Polishing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}.
|
||||
*
|
||||
|
||||
@@ -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}.
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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 "";
|
||||
|
||||
@@ -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}.
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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}.
|
||||
|
||||
@@ -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}.
|
||||
*
|
||||
|
||||
@@ -26,7 +26,6 @@ import org.springframework.lang.Nullable;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
/**
|
||||
* {@link HttpClientAdapter} with stubbed responses.
|
||||
*
|
||||
|
||||
@@ -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}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user