Move auto-configuration for WebTestClient in autoconfigure
Closes gh-47892
This commit is contained in:
parent
8d5d35a7ac
commit
724f706f34
|
|
@ -189,7 +189,7 @@ If you prefer to use AssertJ, dedicated assertions are available from javadoc:or
|
|||
|
||||
include-code::MyRandomPortRestTestClientAssertJTests[]
|
||||
|
||||
If you have `spring-webflux` on the classpath, you can also autowire a {url-spring-framework-docs}/testing/webtestclient.html[`WebTestClient`] by annotating the test class with javadoc:org.springframework.boot.webtestclient.AutoConfigureWebTestClient[format=annotation].
|
||||
If you have `spring-webflux` on the classpath, you can also autowire a {url-spring-framework-docs}/testing/webtestclient.html[`WebTestClient`] by annotating the test class with javadoc:org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient[format=annotation].
|
||||
|
||||
`WebTestClient` provides a similar API, as shown in the following example:
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
package org.springframework.boot.docs.testing.springbootapplications.autoconfiguredspringrestdocs.withwebtestclient;
|
||||
|
||||
import org.springframework.boot.test.context.TestConfiguration;
|
||||
import org.springframework.boot.webtestclient.WebTestClientBuilderCustomizer;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.WebTestClientBuilderCustomizer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
|
||||
import static org.springframework.restdocs.webtestclient.WebTestClientRestDocumentation.document;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.boot.resttestclient.autoconfigure.AutoConfigureRestTestClient;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
import org.springframework.test.web.servlet.MockMvc;
|
||||
import org.springframework.test.web.servlet.assertj.MockMvcTester;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
||||
@SpringBootTest
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
package org.springframework.boot.docs.testing.springbootapplications.autoconfiguredspringrestdocs.withwebtestclient
|
||||
|
||||
import org.springframework.boot.test.context.TestConfiguration
|
||||
import org.springframework.boot.webtestclient.WebTestClientBuilderCustomizer
|
||||
import org.springframework.boot.webtestclient.autoconfigure.WebTestClientBuilderCustomizer
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.restdocs.webtestclient.WebTestClientRestDocumentation
|
||||
import org.springframework.test.web.reactive.server.WebTestClient
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
|
|||
import org.springframework.boot.resttestclient.autoconfigure.AutoConfigureRestTestClient
|
||||
import org.springframework.boot.test.context.SpringBootTest
|
||||
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient
|
||||
import org.springframework.test.web.reactive.server.WebTestClient
|
||||
import org.springframework.test.web.reactive.server.expectBody
|
||||
import org.springframework.test.web.servlet.MockMvc
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package org.springframework.boot.docs.testing.springbootapplications.withmockenv
|
|||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.beans.factory.annotation.Autowired
|
||||
import org.springframework.boot.test.context.SpringBootTest
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient
|
||||
import org.springframework.test.web.reactive.server.WebTestClient
|
||||
import org.springframework.test.web.reactive.server.expectBody
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test
|
|||
import org.springframework.beans.factory.annotation.Autowired
|
||||
import org.springframework.boot.test.context.SpringBootTest
|
||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient
|
||||
import org.springframework.test.web.reactive.server.WebTestClient
|
||||
import org.springframework.test.web.reactive.server.expectBody
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import org.springframework.boot.test.web.server.LocalServerPort;
|
|||
import org.springframework.boot.tomcat.reactive.TomcatReactiveWebServerFactory;
|
||||
import org.springframework.boot.web.context.reactive.ReactiveWebApplicationContext;
|
||||
import org.springframework.boot.web.server.reactive.ReactiveWebServerFactory;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import java.lang.annotation.RetentionPolicy;
|
|||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.graphql.test.tester.HttpGraphQlTester;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import org.springframework.web.reactive.function.client.WebClient;
|
|||
* @author Stephane Nicoll
|
||||
* @since 4.0.0
|
||||
*/
|
||||
@AutoConfiguration(afterName = "org.springframework.boot.webtestclient.WebTestClientAutoConfiguration")
|
||||
@AutoConfiguration(afterName = "org.springframework.boot.webtestclient.autoconfigure.WebTestClientAutoConfiguration")
|
||||
@ConditionalOnClass({ WebClient.class, WebTestClient.class, WebGraphQlTester.class })
|
||||
@EnableConfigurationProperties(GraphQlProperties.class)
|
||||
public final class HttpGraphQlTesterAutoConfiguration {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
|||
import org.springframework.boot.test.http.server.LocalTestWebServer;
|
||||
import org.springframework.boot.test.http.server.LocalTestWebServer.Scheme;
|
||||
import org.springframework.boot.testsupport.classpath.resources.WithResource;
|
||||
import org.springframework.boot.webtestclient.WebTestClientAutoConfiguration;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.WebTestClientAutoConfiguration;
|
||||
import org.springframework.graphql.test.tester.HttpGraphQlTester;
|
||||
import org.springframework.test.web.servlet.MockMvc;
|
||||
import org.springframework.web.util.UriBuilderFactory;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import org.springframework.boot.mustache.reactive.view.MustacheViewResolver;
|
|||
import org.springframework.boot.reactor.netty.autoconfigure.NettyReactiveWebServerAutoConfiguration;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
|
|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.boot.webtestclient.WebTestClientBuilderCustomizer;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.WebTestClientBuilderCustomizer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.restdocs.RestDocumentationContextProvider;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ package org.springframework.boot.restdocs.test.autoconfigure;
|
|||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import org.springframework.boot.webtestclient.WebTestClientBuilderCustomizer;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.WebTestClientBuilderCustomizer;
|
||||
import org.springframework.restdocs.webtestclient.WebTestClientRestDocumentationConfigurer;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test;
|
|||
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||
import org.springframework.boot.webtestclient.WebTestClientAutoConfiguration;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.WebTestClientAutoConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.util.ReflectionTestUtils;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import org.springframework.boot.test.autoconfigure.OverrideAutoConfiguration;
|
|||
import org.springframework.boot.test.autoconfigure.json.AutoConfigureJson;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.context.filter.annotation.TypeExcludeFilters;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.webtestclient;
|
||||
package org.springframework.boot.webtestclient.autoconfigure;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.webtestclient;
|
||||
package org.springframework.boot.webtestclient.autoconfigure;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.Collection;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.webtestclient;
|
||||
package org.springframework.boot.webtestclient.autoconfigure;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.webtestclient;
|
||||
package org.springframework.boot.webtestclient.autoconfigure;
|
||||
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient.Builder;
|
||||
|
|
@ -18,6 +18,6 @@
|
|||
* Auto-configuration for WebTestClient.
|
||||
*/
|
||||
@NullMarked
|
||||
package org.springframework.boot.webtestclient;
|
||||
package org.springframework.boot.webtestclient.autoconfigure;
|
||||
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
org.springframework.boot.http.codec.autoconfigure.CodecsAutoConfiguration
|
||||
org.springframework.boot.webtestclient.WebTestClientAutoConfiguration
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
org.springframework.boot.http.codec.autoconfigure.CodecsAutoConfiguration
|
||||
org.springframework.boot.webtestclient.autoconfigure.WebTestClientAutoConfiguration
|
||||
|
|
@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.boot.SpringBootConfiguration;
|
||||
import org.springframework.boot.http.codec.autoconfigure.CodecsAutoConfiguration;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package org.springframework.boot.webflux.test.autoconfigure;
|
||||
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
package org.springframework.boot.webflux.test.autoconfigure;
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
|
||||
/**
|
||||
* Example {@link SpringBootApplication @SpringBootApplication} used with
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
|||
import org.springframework.boot.test.http.server.LocalTestWebServer;
|
||||
import org.springframework.boot.test.http.server.LocalTestWebServer.Scheme;
|
||||
import org.springframework.boot.testsupport.classpath.resources.WithResource;
|
||||
import org.springframework.boot.webtestclient.WebTestClientAutoConfiguration;
|
||||
import org.springframework.boot.webtestclient.WebTestClientBuilderCustomizer;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.WebTestClientAutoConfiguration;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.WebTestClientBuilderCustomizer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.test.context.ActiveProfiles;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
|||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||
import org.springframework.boot.test.web.server.LocalManagementPort;
|
||||
import org.springframework.boot.test.web.server.LocalServerPort;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.security.config.web.server.ServerHttpSecurity;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import org.springframework.boot.actuate.web.mappings.MappingsEndpoint;
|
|||
import org.springframework.boot.security.autoconfigure.actuate.web.reactive.EndpointRequest;
|
||||
import org.springframework.boot.security.autoconfigure.web.reactive.PathRequest;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import org.springframework.boot.test.context.SpringBootTest.WebEnvironment
|
|||
import org.springframework.http.MediaType
|
||||
import org.springframework.test.web.reactive.server.WebTestClient
|
||||
import org.springframework.test.web.reactive.server.expectBody
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient
|
||||
|
||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||
@AutoConfigureWebTestClient
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import tools.jackson.databind.ObjectMapper;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import tools.jackson.databind.ObjectMapper;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.web.reactive.server.EntityExchangeResult;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import reactor.core.publisher.Mono;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import reactor.core.publisher.Mono;
|
|||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
|
||||
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
|
||||
import org.springframework.core.ParameterizedTypeReference;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
|
|
|
|||
Loading…
Reference in New Issue