Browse Source

Merge branch '4.0.x'

Closes gh-48700
pull/48767/head
Andy Wilkinson 4 weeks ago
parent
commit
ef1f4e2fa2
  1. 3
      documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessorTests.java
  2. 3
      documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configurecustomdatasource/builder/MyDataSourceConfigurationTests.java
  3. 3
      documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configurecustomdatasource/builder/configurable/MyDataSourceConfigurationTests.java
  4. 3
      documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configurecustomdatasource/builder/simple/MyDataSourceConfigurationTests.java
  5. 3
      module/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/CacheAutoConfigurationTests.java
  6. 3
      module/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/CachesEndpointAutoConfigurationTests.java
  7. 20
      module/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/MockCachingProvider.java
  8. 2
      module/spring-boot-cache/src/test/resources/META-INF/services/javax.cache.spi.CachingProvider
  9. 3
      module/spring-boot-flyway/src/test/java/org/springframework/boot/flyway/actuate/endpoint/FlywayEndpointTests.java
  10. 3
      module/spring-boot-flyway/src/test/java/org/springframework/boot/flyway/autoconfigure/FlywayEndpointAutoConfigurationTests.java
  11. 2
      module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/CustomHibernateJpaAutoConfigurationTests.java
  12. 8
      module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/HibernateJpaAutoConfigurationTests.java
  13. 2
      module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/mapping/NonAnnotatedEntity.java
  14. 2
      module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/test/city/City.java
  15. 2
      module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/test/city/CityListener.java
  16. 2
      module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/test/country/Country.java
  17. 3
      module/spring-boot-integration/src/test/java/org/springframework/boot/integration/actuate/endpoint/IntegrationGraphEndpointTests.java
  18. 3
      module/spring-boot-integration/src/test/java/org/springframework/boot/integration/actuate/endpoint/IntegrationGraphEndpointWebIntegrationTests.java
  19. 4
      module/spring-boot-integration/src/test/java/org/springframework/boot/integration/autoconfigure/IntegrationGraphEndpointAutoConfigurationTests.java
  20. 2
      module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/ExampleComponent.java
  21. 3
      module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/ExampleJooqApplication.java
  22. 3
      module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/JooqTestIntegrationTests.java
  23. 3
      module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/JooqTestPropertiesIntegrationTests.java
  24. 3
      module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/JooqTestWithAutoConfigureTestDatabaseIntegrationTests.java
  25. 60
      module/spring-boot-liquibase/src/test/java/org/springframework/boot/liquibase/actuate/endpoint/LiquibaseEndpointTests.java
  26. 4
      module/spring-boot-liquibase/src/test/java/org/springframework/boot/liquibase/autoconfigure/LiquibaseEndpointAutoConfigurationTests.java
  27. 3
      module/spring-boot-mongodb/src/test/java/org/springframework/boot/mongodb/autoconfigure/health/MongoHealthContributorAutoConfigurationTests.java
  28. 4
      module/spring-boot-mongodb/src/test/java/org/springframework/boot/mongodb/autoconfigure/health/MongoReactiveHealthContributorAutoConfigurationTests.java
  29. 3
      module/spring-boot-pulsar/src/dockerTest/java/org/springframework/boot/pulsar/autoconfigure/PulsarAutoConfigurationIntegrationTests.java
  30. 4
      module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/RestClientObservationAutoConfigurationTests.java
  31. 4
      module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/RestClientObservationAutoConfigurationWithoutMetricsTests.java
  32. 4
      module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/RestTemplateObservationAutoConfigurationTests.java
  33. 4
      module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/RestTemplateObservationAutoConfigurationWithoutMetricsTests.java
  34. 4
      module/spring-boot-tomcat/src/test/java/org/springframework/boot/tomcat/autoconfigure/actuate/web/server/TomcatManagementServerPropertiesTests.java
  35. 3
      module/spring-boot-web-server/src/test/java/org/springframework/boot/web/server/autoconfigure/ServerPropertiesTests.java
  36. 4
      module/spring-boot-webflux/src/test/java/org/springframework/boot/webflux/autoconfigure/WebFluxObservationAutoConfigurationTests.java
  37. 3
      module/spring-boot-webmvc/src/test/java/org/springframework/boot/webmvc/autoconfigure/actuate/endpoint/web/WebMvcHealthEndpointExtensionAutoConfigurationTests.java
  38. 3
      module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/AutoConfigureWebTestClientIntegrationTests.java
  39. 2
      module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleController1.java
  40. 2
      module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleController2.java
  41. 2
      module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleId.java
  42. 3
      module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleRealService.java
  43. 3
      module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleWebTestClientApplication.java
  44. 8
      module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/WebTestClientAutoConfigurationTests.java
  45. 3
      module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/WebTestClientSpringBootTestIntegrationTests.java

3
documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/springbootapplication/MyEnvironmentPostProcessorTests.java → documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessorTests.java

@ -14,12 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.docs.howto.springbootapplication; package org.springframework.boot.docs.howto.application.customizetheenvironmentorapplicationcontext;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.docs.howto.application.customizetheenvironmentorapplicationcontext.MyEnvironmentPostProcessor;
import org.springframework.core.env.StandardEnvironment; import org.springframework.core.env.StandardEnvironment;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;

3
documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configurecustomdatasource/MyDataSourceConfigurationTests.java → documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configurecustomdatasource/builder/MyDataSourceConfigurationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource; package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.builder;
import java.sql.SQLException; import java.sql.SQLException;
@ -24,7 +24,6 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.builder.MyDataSourceConfiguration;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;

3
documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configurecustomdatasource/configurable/MyDataSourceConfigurationTests.java → documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configurecustomdatasource/builder/configurable/MyDataSourceConfigurationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.configurable; package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.builder.configurable;
import java.sql.SQLException; import java.sql.SQLException;
@ -25,6 +25,7 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.configurable.MyDataSourceConfiguration;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;

3
documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configurecustomdatasource/simple/MyDataSourceConfigurationTests.java → documentation/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configurecustomdatasource/builder/simple/MyDataSourceConfigurationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.simple; package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.builder.simple;
import java.sql.SQLException; import java.sql.SQLException;
@ -25,6 +25,7 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.simple.MyDataSourceConfiguration;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;

3
module/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/CacheAutoConfigurationTests.java vendored

@ -47,8 +47,7 @@ import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.BeanCreationException; import org.springframework.beans.factory.BeanCreationException;
import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.autoconfigure.cache.support.MockCachingProvider; import org.springframework.boot.cache.autoconfigure.MockCachingProvider.MockCacheManager;
import org.springframework.boot.autoconfigure.cache.support.MockCachingProvider.MockCacheManager;
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration; import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext; import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.testsupport.classpath.resources.WithResource; import org.springframework.boot.testsupport.classpath.resources.WithResource;

3
module/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/actuate/endpoint/CachesEndpointAutoConfigurationTests.java → module/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/CachesEndpointAutoConfigurationTests.java vendored

@ -14,14 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.cache.autoconfigure.actuate.endpoint; package org.springframework.boot.cache.autoconfigure;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.cache.actuate.endpoint.CachesEndpoint; import org.springframework.boot.cache.actuate.endpoint.CachesEndpoint;
import org.springframework.boot.cache.actuate.endpoint.CachesEndpointWebExtension; import org.springframework.boot.cache.actuate.endpoint.CachesEndpointWebExtension;
import org.springframework.boot.cache.autoconfigure.CachesEndpointAutoConfiguration;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.cache.CacheManager; import org.springframework.cache.CacheManager;

20
core/spring-boot-autoconfigure/src/testFixtures/java/org/springframework/boot/autoconfigure/cache/support/MockCachingProvider.java → module/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/MockCachingProvider.java vendored

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.autoconfigure.cache.support; package org.springframework.boot.cache.autoconfigure;
import java.net.URI; import java.net.URI;
import java.util.HashMap; import java.util.HashMap;
@ -27,6 +27,8 @@ import javax.cache.configuration.Configuration;
import javax.cache.configuration.OptionalFeature; import javax.cache.configuration.OptionalFeature;
import javax.cache.spi.CachingProvider; import javax.cache.spi.CachingProvider;
import org.jspecify.annotations.Nullable;
import static org.mockito.BDDMockito.given; import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.mock; import static org.mockito.Mockito.mock;
@ -39,7 +41,7 @@ import static org.mockito.Mockito.mock;
public class MockCachingProvider implements CachingProvider { public class MockCachingProvider implements CachingProvider {
@Override @Override
public CacheManager getCacheManager(URI uri, ClassLoader classLoader, Properties properties) { public CacheManager getCacheManager(@Nullable URI uri, ClassLoader classLoader, Properties properties) {
return new MockCacheManager(uri, classLoader, properties); return new MockCacheManager(uri, classLoader, properties);
} }
@ -49,7 +51,7 @@ public class MockCachingProvider implements CachingProvider {
} }
@Override @Override
public URI getDefaultURI() { public @Nullable URI getDefaultURI() {
return null; return null;
} }
@ -59,7 +61,7 @@ public class MockCachingProvider implements CachingProvider {
} }
@Override @Override
public CacheManager getCacheManager(URI uri, ClassLoader classLoader) { public CacheManager getCacheManager(@Nullable URI uri, ClassLoader classLoader) {
return getCacheManager(uri, classLoader, getDefaultProperties()); return getCacheManager(uri, classLoader, getDefaultProperties());
} }
@ -91,7 +93,7 @@ public class MockCachingProvider implements CachingProvider {
private final Map<String, Cache<?, ?>> caches = new HashMap<>(); private final Map<String, Cache<?, ?>> caches = new HashMap<>();
private final URI uri; private final @Nullable URI uri;
private final ClassLoader classLoader; private final ClassLoader classLoader;
@ -99,7 +101,7 @@ public class MockCachingProvider implements CachingProvider {
private boolean closed; private boolean closed;
public MockCacheManager(URI uri, ClassLoader classLoader, Properties properties) { public MockCacheManager(@Nullable URI uri, ClassLoader classLoader, Properties properties) {
this.uri = uri; this.uri = uri;
this.classLoader = classLoader; this.classLoader = classLoader;
this.properties = properties; this.properties = properties;
@ -111,7 +113,7 @@ public class MockCachingProvider implements CachingProvider {
} }
@Override @Override
public URI getURI() { public @Nullable URI getURI() {
return this.uri; return this.uri;
} }
@ -137,13 +139,13 @@ public class MockCachingProvider implements CachingProvider {
@Override @Override
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public <K, V> Cache<K, V> getCache(String cacheName, Class<K> keyType, Class<V> valueType) { public <K, V> @Nullable Cache<K, V> getCache(String cacheName, Class<K> keyType, Class<V> valueType) {
return (Cache<K, V>) this.caches.get(cacheName); return (Cache<K, V>) this.caches.get(cacheName);
} }
@Override @Override
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public <K, V> Cache<K, V> getCache(String cacheName) { public <K, V> @Nullable Cache<K, V> getCache(String cacheName) {
return (Cache<K, V>) this.caches.get(cacheName); return (Cache<K, V>) this.caches.get(cacheName);
} }

2
module/spring-boot-cache/src/test/resources/META-INF/services/javax.cache.spi.CachingProvider vendored

@ -1,4 +1,4 @@
# #
# Test JSR 107 provider for testing purposes only. # Test JSR 107 provider for testing purposes only.
# #
org.springframework.boot.autoconfigure.cache.support.MockCachingProvider org.springframework.boot.cache.autoconfigure.MockCachingProvider

3
module/spring-boot-flyway/src/test/java/org/springframework/boot/flyway/endpoint/FlywayEndpointTests.java → module/spring-boot-flyway/src/test/java/org/springframework/boot/flyway/actuate/endpoint/FlywayEndpointTests.java

@ -14,14 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.flyway.endpoint; package org.springframework.boot.flyway.actuate.endpoint;
import java.util.Map; import java.util.Map;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.flyway.actuate.endpoint.FlywayEndpoint;
import org.springframework.boot.flyway.actuate.endpoint.FlywayEndpoint.ContextFlywayBeansDescriptor; import org.springframework.boot.flyway.actuate.endpoint.FlywayEndpoint.ContextFlywayBeansDescriptor;
import org.springframework.boot.flyway.actuate.endpoint.FlywayEndpoint.FlywayDescriptor; import org.springframework.boot.flyway.actuate.endpoint.FlywayEndpoint.FlywayDescriptor;
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration; import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;

3
module/spring-boot-flyway/src/test/java/org/springframework/boot/flyway/autoconfigure/actuate/endpoint/FlywayEndpointAutoConfigurationTests.java → module/spring-boot-flyway/src/test/java/org/springframework/boot/flyway/autoconfigure/FlywayEndpointAutoConfigurationTests.java

@ -14,14 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.flyway.autoconfigure.actuate.endpoint; package org.springframework.boot.flyway.autoconfigure;
import org.flywaydb.core.Flyway; import org.flywaydb.core.Flyway;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.flyway.actuate.endpoint.FlywayEndpoint; import org.springframework.boot.flyway.actuate.endpoint.FlywayEndpoint;
import org.springframework.boot.flyway.autoconfigure.FlywayEndpointAutoConfiguration;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;

2
module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/CustomHibernateJpaAutoConfigurationTests.java

@ -31,9 +31,9 @@ import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage; import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
import org.springframework.boot.hibernate.autoconfigure.test.city.City;
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration; import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
import org.springframework.boot.jpa.autoconfigure.JpaProperties; import org.springframework.boot.jpa.autoconfigure.JpaProperties;
import org.springframework.boot.jpa.autoconfigure.test.city.City;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;

8
module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/HibernateJpaAutoConfigurationTests.java

@ -73,6 +73,9 @@ import org.springframework.boot.hibernate.SpringJtaPlatform;
import org.springframework.boot.hibernate.autoconfigure.HibernateJpaAutoConfigurationTests.JpaUsingApplicationListenerConfiguration.EventCapturingApplicationListener; import org.springframework.boot.hibernate.autoconfigure.HibernateJpaAutoConfigurationTests.JpaUsingApplicationListenerConfiguration.EventCapturingApplicationListener;
import org.springframework.boot.hibernate.autoconfigure.HibernateJpaConfiguration.Hibernate72RuntimeHints; import org.springframework.boot.hibernate.autoconfigure.HibernateJpaConfiguration.Hibernate72RuntimeHints;
import org.springframework.boot.hibernate.autoconfigure.HibernateJpaConfiguration.HibernateRuntimeHints; import org.springframework.boot.hibernate.autoconfigure.HibernateJpaConfiguration.HibernateRuntimeHints;
import org.springframework.boot.hibernate.autoconfigure.mapping.NonAnnotatedEntity;
import org.springframework.boot.hibernate.autoconfigure.test.city.City;
import org.springframework.boot.hibernate.autoconfigure.test.country.Country;
import org.springframework.boot.jdbc.DataSourceBuilder; import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration; import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration; import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration;
@ -82,9 +85,6 @@ import org.springframework.boot.jpa.EntityManagerFactoryBuilder;
import org.springframework.boot.jpa.autoconfigure.EntityManagerFactoryBuilderCustomizer; import org.springframework.boot.jpa.autoconfigure.EntityManagerFactoryBuilderCustomizer;
import org.springframework.boot.jpa.autoconfigure.JpaBaseConfiguration; import org.springframework.boot.jpa.autoconfigure.JpaBaseConfiguration;
import org.springframework.boot.jpa.autoconfigure.JpaProperties; import org.springframework.boot.jpa.autoconfigure.JpaProperties;
import org.springframework.boot.jpa.autoconfigure.hibernate.mapping.NonAnnotatedEntity;
import org.springframework.boot.jpa.autoconfigure.test.city.City;
import org.springframework.boot.jpa.autoconfigure.test.country.Country;
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration; import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
import org.springframework.boot.sql.init.dependency.DependsOnDatabaseInitialization; import org.springframework.boot.sql.init.dependency.DependsOnDatabaseInitialization;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext; import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
@ -655,7 +655,7 @@ class HibernateJpaAutoConfigurationTests {
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence/orm https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/persistence/orm_2_1.xsd" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence/orm https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/persistence/orm_2_1.xsd"
version="2.1"> version="2.1">
<entity class="org.springframework.boot.jpa.autoconfigure.hibernate.mapping.NonAnnotatedEntity"> <entity class="org.springframework.boot.hibernate.autoconfigure.mapping.NonAnnotatedEntity">
<table name="NON_ANNOTATED"/> <table name="NON_ANNOTATED"/>
<attributes> <attributes>
<id name="id"> <id name="id">

2
module/spring-boot-hibernate/src/test/java/org/springframework/boot/jpa/autoconfigure/hibernate/mapping/NonAnnotatedEntity.java → module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/mapping/NonAnnotatedEntity.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.jpa.autoconfigure.hibernate.mapping; package org.springframework.boot.hibernate.autoconfigure.mapping;
/** /**
* A non annotated entity that is handled by a custom "mapping-file". * A non annotated entity that is handled by a custom "mapping-file".

2
module/spring-boot-hibernate/src/test/java/org/springframework/boot/jpa/autoconfigure/test/city/City.java → module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/test/city/City.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.jpa.autoconfigure.test.city; package org.springframework.boot.hibernate.autoconfigure.test.city;
import java.io.Serializable; import java.io.Serializable;

2
module/spring-boot-hibernate/src/test/java/org/springframework/boot/jpa/autoconfigure/test/city/CityListener.java → module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/test/city/CityListener.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.jpa.autoconfigure.test.city; package org.springframework.boot.hibernate.autoconfigure.test.city;
import jakarta.persistence.PostLoad; import jakarta.persistence.PostLoad;

2
module/spring-boot-hibernate/src/test/java/org/springframework/boot/jpa/autoconfigure/test/country/Country.java → module/spring-boot-hibernate/src/test/java/org/springframework/boot/hibernate/autoconfigure/test/country/Country.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.jpa.autoconfigure.test.country; package org.springframework.boot.hibernate.autoconfigure.test.country;
import java.io.Serializable; import java.io.Serializable;

3
module/spring-boot-integration/src/test/java/org/springframework/boot/integration/endpoint/IntegrationGraphEndpointTests.java → module/spring-boot-integration/src/test/java/org/springframework/boot/integration/actuate/endpoint/IntegrationGraphEndpointTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.integration.endpoint; package org.springframework.boot.integration.actuate.endpoint;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
@ -23,7 +23,6 @@ import java.util.Map;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.integration.actuate.endpoint.IntegrationGraphEndpoint;
import org.springframework.boot.integration.actuate.endpoint.IntegrationGraphEndpoint.GraphDescriptor; import org.springframework.boot.integration.actuate.endpoint.IntegrationGraphEndpoint.GraphDescriptor;
import org.springframework.integration.graph.Graph; import org.springframework.integration.graph.Graph;
import org.springframework.integration.graph.IntegrationGraphServer; import org.springframework.integration.graph.IntegrationGraphServer;

3
module/spring-boot-integration/src/test/java/org/springframework/boot/integration/endpoint/IntegrationGraphEndpointWebIntegrationTests.java → module/spring-boot-integration/src/test/java/org/springframework/boot/integration/actuate/endpoint/IntegrationGraphEndpointWebIntegrationTests.java

@ -14,10 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.integration.endpoint; package org.springframework.boot.integration.actuate.endpoint;
import org.springframework.boot.actuate.endpoint.web.test.WebEndpointTest; import org.springframework.boot.actuate.endpoint.web.test.WebEndpointTest;
import org.springframework.boot.integration.actuate.endpoint.IntegrationGraphEndpoint;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;

4
module/spring-boot-integration/src/test/java/org/springframework/boot/integration/autoconfigure/endpoint/IntegrationGraphEndpointAutoConfigurationTests.java → module/spring-boot-integration/src/test/java/org/springframework/boot/integration/autoconfigure/IntegrationGraphEndpointAutoConfigurationTests.java

@ -14,15 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.integration.autoconfigure.endpoint; package org.springframework.boot.integration.autoconfigure;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration; import org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration;
import org.springframework.boot.integration.actuate.endpoint.IntegrationGraphEndpoint; import org.springframework.boot.integration.actuate.endpoint.IntegrationGraphEndpoint;
import org.springframework.boot.integration.autoconfigure.IntegrationAutoConfiguration;
import org.springframework.boot.integration.autoconfigure.IntegrationGraphEndpointAutoConfiguration;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.integration.graph.IntegrationGraphServer; import org.springframework.integration.graph.IntegrationGraphServer;

2
module/spring-boot-jooq-test/src/test/java/org/springframework/boot/test/autoconfigure/jooq/ExampleComponent.java → module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/ExampleComponent.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.test.autoconfigure.jooq; package org.springframework.boot.jooq.test.autoconfigure;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;

3
module/spring-boot-jooq-test/src/test/java/org/springframework/boot/test/autoconfigure/jooq/ExampleJooqApplication.java → module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/ExampleJooqApplication.java

@ -14,12 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.test.autoconfigure.jooq; package org.springframework.boot.jooq.test.autoconfigure;
import javax.sql.DataSource; import javax.sql.DataSource;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.jooq.test.autoconfigure.JooqTest;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;

3
module/spring-boot-jooq-test/src/test/java/org/springframework/boot/test/autoconfigure/jooq/JooqTestIntegrationTests.java → module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/JooqTestIntegrationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.test.autoconfigure.jooq; package org.springframework.boot.jooq.test.autoconfigure;
import javax.sql.DataSource; import javax.sql.DataSource;
@ -25,7 +25,6 @@ import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration; import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
import org.springframework.boot.jooq.test.autoconfigure.JooqTest;
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration; import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
import org.springframework.boot.testcontainers.service.connection.ServiceConnectionAutoConfiguration; import org.springframework.boot.testcontainers.service.connection.ServiceConnectionAutoConfiguration;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;

3
module/spring-boot-jooq-test/src/test/java/org/springframework/boot/test/autoconfigure/jooq/JooqTestPropertiesIntegrationTests.java → module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/JooqTestPropertiesIntegrationTests.java

@ -14,13 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.test.autoconfigure.jooq; package org.springframework.boot.jooq.test.autoconfigure;
import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.jooq.test.autoconfigure.JooqTest;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;

3
module/spring-boot-jooq-test/src/test/java/org/springframework/boot/test/autoconfigure/jooq/JooqTestWithAutoConfigureTestDatabaseIntegrationTests.java → module/spring-boot-jooq-test/src/test/java/org/springframework/boot/jooq/test/autoconfigure/JooqTestWithAutoConfigureTestDatabaseIntegrationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.test.autoconfigure.jooq; package org.springframework.boot.jooq.test.autoconfigure;
import javax.sql.DataSource; import javax.sql.DataSource;
@ -25,7 +25,6 @@ import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.jdbc.EmbeddedDatabaseConnection; import org.springframework.boot.jdbc.EmbeddedDatabaseConnection;
import org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureTestDatabase; import org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureTestDatabase;
import org.springframework.boot.jooq.test.autoconfigure.JooqTest;
import org.springframework.test.context.TestPropertySource; import org.springframework.test.context.TestPropertySource;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;

60
module/spring-boot-liquibase/src/test/java/org/springframework/boot/liquibase/endpoint/LiquibaseEndpointTests.java → module/spring-boot-liquibase/src/test/java/org/springframework/boot/liquibase/actuate/endpoint/LiquibaseEndpointTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.liquibase.endpoint; package org.springframework.boot.liquibase.actuate.endpoint;
import java.sql.Connection; import java.sql.Connection;
import java.sql.SQLException; import java.sql.SQLException;
@ -25,13 +25,13 @@ import java.util.UUID;
import javax.sql.DataSource; import javax.sql.DataSource;
import liquibase.integration.spring.SpringLiquibase; import liquibase.integration.spring.SpringLiquibase;
import org.jspecify.annotations.Nullable;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.jdbc.EmbeddedDatabaseConnection;
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration; import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
import org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer; import org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer;
import org.springframework.boot.liquibase.actuate.endpoint.LiquibaseEndpoint; import org.springframework.boot.liquibase.actuate.endpoint.LiquibaseEndpoint.ContextLiquibaseBeansDescriptor;
import org.springframework.boot.liquibase.actuate.endpoint.LiquibaseEndpoint.LiquibaseBeanDescriptor; import org.springframework.boot.liquibase.actuate.endpoint.LiquibaseEndpoint.LiquibaseBeanDescriptor;
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration; import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
import org.springframework.boot.sql.init.DatabaseInitializationSettings; import org.springframework.boot.sql.init.DatabaseInitializationSettings;
@ -43,6 +43,7 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@ -75,12 +76,15 @@ class LiquibaseEndpointTests {
void liquibaseReportIsReturnedForContextHierarchy() { void liquibaseReportIsReturnedForContextHierarchy() {
this.contextRunner.withUserConfiguration().run((parent) -> { this.contextRunner.withUserConfiguration().run((parent) -> {
this.contextRunner.withUserConfiguration(Config.class).withParent(parent).run((context) -> { this.contextRunner.withUserConfiguration(Config.class).withParent(parent).run((context) -> {
Map<String, LiquibaseBeanDescriptor> liquibaseBeans = context.getBean(LiquibaseEndpoint.class) Map<@Nullable String, ContextLiquibaseBeansDescriptor> contexts = context
.getBean(LiquibaseEndpoint.class)
.liquibaseBeans() .liquibaseBeans()
.getContexts() .getContexts();
.get(parent.getId()) ContextLiquibaseBeansDescriptor parentContext = contexts.get(parent.getId());
.getLiquibaseBeans(); assertThat(parentContext).isNotNull();
assertThat(liquibaseBeans.get("liquibase").getChangeSets()).hasSize(1); Map<String, LiquibaseBeanDescriptor> liquibaseBeans = parentContext.getLiquibaseBeans();
assertThat(liquibaseBeans).hasEntrySatisfying("liquibase",
(descriptor) -> assertThat(descriptor.getChangeSets()).hasSize(1));
}); });
}); });
} }
@ -133,12 +137,14 @@ class LiquibaseEndpointTests {
private ContextConsumer<AssertableApplicationContext> hasEndpointWithInitializedSchema() { private ContextConsumer<AssertableApplicationContext> hasEndpointWithInitializedSchema() {
return (context) -> { return (context) -> {
Map<String, LiquibaseBeanDescriptor> liquibaseBeans = context.getBean(LiquibaseEndpoint.class) ContextLiquibaseBeansDescriptor contextDescriptor = context.getBean(LiquibaseEndpoint.class)
.liquibaseBeans() .liquibaseBeans()
.getContexts() .getContexts()
.get(context.getId()) .get(context.getId());
.getLiquibaseBeans(); assertThat(contextDescriptor).isNotNull();
assertThat(liquibaseBeans.get("liquibase").getChangeSets()).hasSize(1); Map<String, LiquibaseBeanDescriptor> liquibaseBeans = contextDescriptor.getLiquibaseBeans();
assertThat(liquibaseBeans).hasEntrySatisfying("liquibase",
(descriptor) -> assertThat(descriptor.getChangeSets()).hasSize(1));
}; };
} }
@ -162,17 +168,22 @@ class LiquibaseEndpointTests {
void whenMultipleLiquibaseBeansArePresentChangeSetsAreCorrectlyReportedForEachBean() { void whenMultipleLiquibaseBeansArePresentChangeSetsAreCorrectlyReportedForEachBean() {
this.contextRunner.withUserConfiguration(Config.class, MultipleDataSourceLiquibaseConfiguration.class) this.contextRunner.withUserConfiguration(Config.class, MultipleDataSourceLiquibaseConfiguration.class)
.run((context) -> { .run((context) -> {
Map<String, LiquibaseBeanDescriptor> liquibaseBeans = context.getBean(LiquibaseEndpoint.class) ContextLiquibaseBeansDescriptor contextDescriptor = context.getBean(LiquibaseEndpoint.class)
.liquibaseBeans() .liquibaseBeans()
.getContexts() .getContexts()
.get(context.getId()) .get(context.getId());
.getLiquibaseBeans(); assertThat(contextDescriptor).isNotNull();
assertThat(liquibaseBeans.get("liquibase").getChangeSets()).hasSize(1); Map<String, LiquibaseBeanDescriptor> liquibaseBeans = contextDescriptor.getLiquibaseBeans();
assertThat(liquibaseBeans.get("liquibase").getChangeSets().get(0).getChangeLog()) assertThat(liquibaseBeans).hasEntrySatisfying("liquibase", (liquibase) -> {
.isEqualTo("db/changelog/db.changelog-master.yaml"); assertThat(liquibase.getChangeSets()).hasSize(1);
assertThat(liquibaseBeans.get("liquibaseBackup").getChangeSets()).hasSize(1); assertThat(liquibase.getChangeSets().get(0).getChangeLog())
assertThat(liquibaseBeans.get("liquibaseBackup").getChangeSets().get(0).getChangeLog()) .isEqualTo("db/changelog/db.changelog-master.yaml");
.isEqualTo("db/changelog/db.changelog-master-backup.yaml"); });
assertThat(liquibaseBeans).hasEntrySatisfying("liquibaseBackup", (liquibase) -> {
assertThat(liquibase.getChangeSets()).hasSize(1);
assertThat(liquibase.getChangeSets().get(0).getChangeLog())
.isEqualTo("db/changelog/db.changelog-master-backup.yaml");
});
}); });
} }
@ -197,8 +208,7 @@ class LiquibaseEndpointTests {
@Bean @Bean
DataSource dataSource() { DataSource dataSource() {
DataSource dataSource = new EmbeddedDatabaseBuilder() DataSource dataSource = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.H2)
.setType(EmbeddedDatabaseConnection.get(getClass().getClassLoader()).getType())
.setName(UUID.randomUUID().toString()) .setName(UUID.randomUUID().toString())
.build(); .build();
DatabaseInitializationSettings settings = new DatabaseInitializationSettings(); DatabaseInitializationSettings settings = new DatabaseInitializationSettings();
@ -235,9 +245,7 @@ class LiquibaseEndpointTests {
} }
private DataSource createEmbeddedDatabase() { private DataSource createEmbeddedDatabase() {
return new EmbeddedDatabaseBuilder().generateUniqueName(true) return new EmbeddedDatabaseBuilder().generateUniqueName(true).setType(EmbeddedDatabaseType.H2).build();
.setType(EmbeddedDatabaseConnection.H2.getType())
.build();
} }
private SpringLiquibase createSpringLiquibase(String changeLog, DataSource dataSource) { private SpringLiquibase createSpringLiquibase(String changeLog, DataSource dataSource) {

4
module/spring-boot-liquibase/src/test/java/org/springframework/boot/liquibase/autoconfigure/endpoint/LiquibaseEndpointAutoConfigurationTests.java → module/spring-boot-liquibase/src/test/java/org/springframework/boot/liquibase/autoconfigure/LiquibaseEndpointAutoConfigurationTests.java

@ -14,15 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.liquibase.autoconfigure.endpoint; package org.springframework.boot.liquibase.autoconfigure;
import liquibase.integration.spring.SpringLiquibase; import liquibase.integration.spring.SpringLiquibase;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.liquibase.actuate.endpoint.LiquibaseEndpoint; import org.springframework.boot.liquibase.actuate.endpoint.LiquibaseEndpoint;
import org.springframework.boot.liquibase.autoconfigure.DataSourceClosingSpringLiquibase;
import org.springframework.boot.liquibase.autoconfigure.LiquibaseEndpointAutoConfiguration;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;

3
module/spring-boot-mongodb/src/test/java/org/springframework/boot/data/mongodb/autoconfigure/health/MongoHealthContributorAutoConfigurationTests.java → module/spring-boot-mongodb/src/test/java/org/springframework/boot/mongodb/autoconfigure/health/MongoHealthContributorAutoConfigurationTests.java

@ -14,14 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.data.mongodb.autoconfigure.health; package org.springframework.boot.mongodb.autoconfigure.health;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.health.autoconfigure.contributor.HealthContributorAutoConfiguration; import org.springframework.boot.health.autoconfigure.contributor.HealthContributorAutoConfiguration;
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration; import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
import org.springframework.boot.mongodb.autoconfigure.health.MongoHealthContributorAutoConfiguration;
import org.springframework.boot.mongodb.health.MongoHealthIndicator; import org.springframework.boot.mongodb.health.MongoHealthIndicator;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;

4
module/spring-boot-mongodb/src/test/java/org/springframework/boot/data/mongodb/autoconfigure/health/MongoReactiveHealthContributorAutoConfigurationTests.java → module/spring-boot-mongodb/src/test/java/org/springframework/boot/mongodb/autoconfigure/health/MongoReactiveHealthContributorAutoConfigurationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.data.mongodb.autoconfigure.health; package org.springframework.boot.mongodb.autoconfigure.health;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@ -22,8 +22,6 @@ import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.health.autoconfigure.contributor.HealthContributorAutoConfiguration; import org.springframework.boot.health.autoconfigure.contributor.HealthContributorAutoConfiguration;
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration; import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
import org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration; import org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration;
import org.springframework.boot.mongodb.autoconfigure.health.MongoHealthContributorAutoConfiguration;
import org.springframework.boot.mongodb.autoconfigure.health.MongoReactiveHealthContributorAutoConfiguration;
import org.springframework.boot.mongodb.health.MongoHealthIndicator; import org.springframework.boot.mongodb.health.MongoHealthIndicator;
import org.springframework.boot.mongodb.health.MongoReactiveHealthIndicator; import org.springframework.boot.mongodb.health.MongoReactiveHealthIndicator;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;

3
module/spring-boot-pulsar/src/dockerTest/java/org/springframework/boot/autoconfigure/pulsar/PulsarAutoConfigurationIntegrationTests.java → module/spring-boot-pulsar/src/dockerTest/java/org/springframework/boot/pulsar/autoconfigure/PulsarAutoConfigurationIntegrationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.autoconfigure.pulsar; package org.springframework.boot.pulsar.autoconfigure;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -26,7 +26,6 @@ import org.testcontainers.pulsar.PulsarContainer;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration; import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.pulsar.autoconfigure.PulsarAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.testsupport.container.TestImage; import org.springframework.boot.testsupport.container.TestImage;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;

4
module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/observation/RestClientObservationAutoConfigurationTests.java → module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/RestClientObservationAutoConfigurationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.restclient.autoconfigure.observation; package org.springframework.boot.restclient.autoconfigure;
import io.micrometer.common.KeyValues; import io.micrometer.common.KeyValues;
import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.MeterRegistry;
@ -28,8 +28,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration; import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestClientAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestClientObservationAutoConfiguration;
import org.springframework.boot.restclient.observation.ObservationRestClientCustomizer; import org.springframework.boot.restclient.observation.ObservationRestClientCustomizer;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext; import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;

4
module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/observation/RestClientObservationAutoConfigurationWithoutMetricsTests.java → module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/RestClientObservationAutoConfigurationWithoutMetricsTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.restclient.autoconfigure.observation; package org.springframework.boot.restclient.autoconfigure;
import io.micrometer.observation.ObservationRegistry; import io.micrometer.observation.ObservationRegistry;
import io.micrometer.observation.tck.TestObservationRegistry; import io.micrometer.observation.tck.TestObservationRegistry;
@ -23,8 +23,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration; import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestClientAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestClientObservationAutoConfiguration;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext; import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.boot.test.system.OutputCaptureExtension; import org.springframework.boot.test.system.OutputCaptureExtension;

4
module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/observation/RestTemplateObservationAutoConfigurationTests.java → module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/RestTemplateObservationAutoConfigurationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.restclient.autoconfigure.observation; package org.springframework.boot.restclient.autoconfigure;
import io.micrometer.common.KeyValues; import io.micrometer.common.KeyValues;
import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.MeterRegistry;
@ -29,8 +29,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration; import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration;
import org.springframework.boot.restclient.RestTemplateBuilder; import org.springframework.boot.restclient.RestTemplateBuilder;
import org.springframework.boot.restclient.autoconfigure.RestTemplateAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestTemplateObservationAutoConfiguration;
import org.springframework.boot.restclient.observation.ObservationRestTemplateCustomizer; import org.springframework.boot.restclient.observation.ObservationRestTemplateCustomizer;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext; import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;

4
module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/observation/RestTemplateObservationAutoConfigurationWithoutMetricsTests.java → module/spring-boot-restclient/src/test/java/org/springframework/boot/restclient/autoconfigure/RestTemplateObservationAutoConfigurationWithoutMetricsTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.restclient.autoconfigure.observation; package org.springframework.boot.restclient.autoconfigure;
import io.micrometer.observation.ObservationRegistry; import io.micrometer.observation.ObservationRegistry;
import io.micrometer.observation.tck.TestObservationRegistry; import io.micrometer.observation.tck.TestObservationRegistry;
@ -24,8 +24,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration; import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration;
import org.springframework.boot.restclient.RestTemplateBuilder; import org.springframework.boot.restclient.RestTemplateBuilder;
import org.springframework.boot.restclient.autoconfigure.RestTemplateAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestTemplateObservationAutoConfiguration;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext; import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.boot.test.system.OutputCaptureExtension; import org.springframework.boot.test.system.OutputCaptureExtension;

4
module/spring-boot-tomcat/src/test/java/org/springframework/boot/tomcat/autoconfigure/actuate/web/TomcatManagementServerPropertiesTests.java → module/spring-boot-tomcat/src/test/java/org/springframework/boot/tomcat/autoconfigure/actuate/web/server/TomcatManagementServerPropertiesTests.java

@ -14,12 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.tomcat.autoconfigure.actuate.web; package org.springframework.boot.tomcat.autoconfigure.actuate.web.server;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.tomcat.autoconfigure.actuate.web.server.TomcatManagementServerProperties;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
/** /**

3
module/spring-boot-web-server/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java → module/spring-boot-web-server/src/test/java/org/springframework/boot/web/server/autoconfigure/ServerPropertiesTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.autoconfigure.web; package org.springframework.boot.web.server.autoconfigure;
import java.net.InetAddress; import java.net.InetAddress;
import java.util.Collections; import java.util.Collections;
@ -29,7 +29,6 @@ import org.springframework.boot.context.properties.source.ConfigurationPropertyS
import org.springframework.boot.context.properties.source.MapConfigurationPropertySource; import org.springframework.boot.context.properties.source.MapConfigurationPropertySource;
import org.springframework.boot.web.server.MimeMappings; import org.springframework.boot.web.server.MimeMappings;
import org.springframework.boot.web.server.MimeMappings.Mapping; import org.springframework.boot.web.server.MimeMappings.Mapping;
import org.springframework.boot.web.server.autoconfigure.ServerProperties;
import org.springframework.util.unit.DataSize; import org.springframework.util.unit.DataSize;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;

4
module/spring-boot-webflux/src/test/java/org/springframework/boot/webflux/observation/autoconfigure/WebFluxObservationAutoConfigurationTests.java → module/spring-boot-webflux/src/test/java/org/springframework/boot/webflux/autoconfigure/WebFluxObservationAutoConfigurationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webflux.observation.autoconfigure; package org.springframework.boot.webflux.autoconfigure;
import java.time.Duration; import java.time.Duration;
import java.time.temporal.ChronoUnit; import java.time.temporal.ChronoUnit;
@ -31,8 +31,6 @@ import org.springframework.boot.test.context.assertj.AssertableReactiveWebApplic
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner; import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
import org.springframework.boot.test.system.CapturedOutput; import org.springframework.boot.test.system.CapturedOutput;
import org.springframework.boot.test.system.OutputCaptureExtension; import org.springframework.boot.test.system.OutputCaptureExtension;
import org.springframework.boot.webflux.autoconfigure.WebFluxAutoConfiguration;
import org.springframework.boot.webflux.autoconfigure.WebFluxObservationAutoConfiguration;
import org.springframework.http.server.reactive.observation.DefaultServerRequestObservationConvention; import org.springframework.http.server.reactive.observation.DefaultServerRequestObservationConvention;
import org.springframework.http.server.reactive.observation.ServerRequestObservationConvention; import org.springframework.http.server.reactive.observation.ServerRequestObservationConvention;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;

3
module/spring-boot-webmvc/src/test/java/org/springframework/boot/webmvc/actuate/autoconfigure/health/WebMvcHealthEndpointExtensionAutoConfigurationTests.java → module/spring-boot-webmvc/src/test/java/org/springframework/boot/webmvc/autoconfigure/actuate/endpoint/web/WebMvcHealthEndpointExtensionAutoConfigurationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webmvc.actuate.autoconfigure.health; package org.springframework.boot.webmvc.autoconfigure.actuate.endpoint.web;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@ -32,7 +32,6 @@ import org.springframework.boot.health.contributor.Health;
import org.springframework.boot.health.contributor.HealthIndicator; import org.springframework.boot.health.contributor.HealthIndicator;
import org.springframework.boot.test.context.runner.WebApplicationContextRunner; import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
import org.springframework.boot.webmvc.actuate.endpoint.web.AdditionalHealthEndpointPathsWebMvcHandlerMapping; import org.springframework.boot.webmvc.actuate.endpoint.web.AdditionalHealthEndpointPathsWebMvcHandlerMapping;
import org.springframework.boot.webmvc.autoconfigure.actuate.endpoint.web.WebMvcHealthEndpointExtensionAutoConfiguration;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet; import org.springframework.web.servlet.DispatcherServlet;

3
module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/AutoConfigureWebTestClientIntegrationTests.java → module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/AutoConfigureWebTestClientIntegrationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webflux.test.autoconfigure; package org.springframework.boot.webtestclient.autoconfigure;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@ -22,7 +22,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration; import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.http.codec.autoconfigure.CodecsAutoConfiguration; import org.springframework.boot.http.codec.autoconfigure.CodecsAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;

2
module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/ExampleController1.java → module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleController1.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webflux.test.autoconfigure; package org.springframework.boot.webtestclient.autoconfigure;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;

2
module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/ExampleController2.java → module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleController2.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webflux.test.autoconfigure; package org.springframework.boot.webtestclient.autoconfigure;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;

2
module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/ExampleId.java → module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleId.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webflux.test.autoconfigure; package org.springframework.boot.webtestclient.autoconfigure;
import java.util.UUID; import java.util.UUID;

3
module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/ExampleRealService.java → module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleRealService.java

@ -14,9 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webflux.test.autoconfigure; package org.springframework.boot.webtestclient.autoconfigure;
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**

3
module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/ExampleWebTestClientApplication.java → module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/ExampleWebTestClientApplication.java

@ -14,10 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webflux.test.autoconfigure; package org.springframework.boot.webtestclient.autoconfigure;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
/** /**
* Example {@link SpringBootApplication @SpringBootApplication} used with * Example {@link SpringBootApplication @SpringBootApplication} used with

8
module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/WebTestClientAutoConfigurationTests.java → module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/WebTestClientAutoConfigurationTests.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webflux.test.autoconfigure; package org.springframework.boot.webtestclient.autoconfigure;
import java.time.Duration; import java.time.Duration;
@ -28,8 +28,6 @@ import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.boot.test.http.server.LocalTestWebServer; import org.springframework.boot.test.http.server.LocalTestWebServer;
import org.springframework.boot.test.http.server.LocalTestWebServer.Scheme; import org.springframework.boot.test.http.server.LocalTestWebServer.Scheme;
import org.springframework.boot.testsupport.classpath.resources.WithResource; import org.springframework.boot.testsupport.classpath.resources.WithResource;
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.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;
@ -101,7 +99,7 @@ class WebTestClientAutoConfigurationTests {
@WithResource(name = "META-INF/spring.factories", @WithResource(name = "META-INF/spring.factories",
content = """ content = """
org.springframework.boot.test.http.server.LocalTestWebServer$Provider=\ org.springframework.boot.test.http.server.LocalTestWebServer$Provider=\
org.springframework.boot.webflux.test.autoconfigure.WebTestClientAutoConfigurationTests$TestLocalTestWebServerProvider org.springframework.boot.webtestclient.autoconfigure.WebTestClientAutoConfigurationTests$TestLocalTestWebServerProvider
""") """)
void shouldDefineWebTestClientBoundToWebServer() { void shouldDefineWebTestClientBoundToWebServer() {
this.contextRunner.run((context) -> { this.contextRunner.run((context) -> {
@ -180,7 +178,7 @@ class WebTestClientAutoConfigurationTests {
@WithResource(name = "META-INF/spring.factories", @WithResource(name = "META-INF/spring.factories",
content = """ content = """
org.springframework.boot.test.http.server.LocalTestWebServer$Provider=\ org.springframework.boot.test.http.server.LocalTestWebServer$Provider=\
org.springframework.boot.webflux.test.autoconfigure.WebTestClientAutoConfigurationTests$TestLocalTestWebServerProvider org.springframework.boot.webtestclient.autoconfigure.WebTestClientAutoConfigurationTests$TestLocalTestWebServerProvider
""") """)
void shouldWorkWithoutServletStack() { void shouldWorkWithoutServletStack() {
ClassLoader parentClassLoader = Thread.currentThread().getContextClassLoader(); ClassLoader parentClassLoader = Thread.currentThread().getContextClassLoader();

3
module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/WebTestClientSpringBootTestIntegrationTests.java → module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webtestclient/autoconfigure/WebTestClientSpringBootTestIntegrationTests.java

@ -14,13 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.webflux.test.autoconfigure; package org.springframework.boot.webtestclient.autoconfigure;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;
import org.springframework.test.web.reactive.server.WebTestClient; import org.springframework.test.web.reactive.server.WebTestClient;
Loading…
Cancel
Save