Merge branch '3.3.x' into 3.4.x

Closes gh-43950
This commit is contained in:
Andy Wilkinson
2025-01-24 08:46:21 +00:00
11 changed files with 23 additions and 25 deletions

View File

@@ -2485,13 +2485,6 @@ bom {
releaseNotes("https://github.com/mojohaus/versions/releases/tag/{version}")
}
}
library("WebJars Locator Lite", "1.0.1") {
group("org.webjars") {
modules = [
"webjars-locator-lite"
]
}
}
library("WebJars Locator Core", "0.59") {
group("org.webjars") {
modules = [
@@ -2499,6 +2492,13 @@ bom {
]
}
}
library("WebJars Locator Lite", "1.0.1") {
group("org.webjars") {
modules = [
"webjars-locator-lite"
]
}
}
library("WSDL4j", "1.6.3") {
group("wsdl4j") {
modules = [

View File

@@ -276,7 +276,7 @@ abstract sealed class DockerCliCommand<R> {
*/
record ComposeVersion(int major, int minor) {
public static final ComposeVersion UNKNOWN = new ComposeVersion(0, 0);
static final ComposeVersion UNKNOWN = new ComposeVersion(0, 0);
boolean isLessThan(int major, int minor) {
return major() < major || major() == major && minor() < minor;

View File

@@ -377,7 +377,7 @@ NOTE: Using a javadoc:org.springframework.boot.testcontainers.service.connection
[[features.dev-services.testcontainers.at-development-time.importing-container-declarations]]
==== Importing Testcontainer Declaration Classes
==== Importing Testcontainers Declaration Classes
A common pattern when using Testcontainers is to declare javadoc:org.testcontainers.containers.Container[] instances as static fields.
Often these fields are defined directly on the test class.
@@ -402,7 +402,7 @@ You can also add javadoc:org.springframework.test.context.DynamicPropertySource[
When using devtools, you can annotate beans and bean methods with javadoc:org.springframework.boot.devtools.restart.RestartScope[format=annotation].
Such beans won't be recreated when the devtools restart the application.
This is especially useful for Testcontainer javadoc:org.testcontainers.containers.Container[] beans, as they keep their state despite the application restart.
This is especially useful for javadoc:org.testcontainers.containers.Container[] beans, as they keep their state despite the application restart.
include-code::MyContainersConfiguration[]

View File

@@ -77,7 +77,7 @@ public @interface AutoConfigureTestDatabase {
* databases:
* <ul>
* <li>Any bean definition that includes {@link ContainerImageMetadata} (including
* {@code @ServiceConnection} annotated Testcontainer databases, and connections
* {@code @ServiceConnection} annotated Testcontainers databases, and connections
* created using Docker Compose)</li>
* <li>Any connection configured using a {@code spring.datasource.url} backed by a
* {@link DynamicPropertySource @DynamicPropertySource}</li>

View File

@@ -155,7 +155,7 @@ class TestRestTemplateTests {
}
@Test
void httpComponentsAreBuildConsideringSettingsInRestTemplateBuilder() {
void httpComponentsAreBuiltConsideringSettingsInRestTemplateBuilder() {
RestTemplateBuilder builder = new RestTemplateBuilder()
.requestFactoryBuilder(ClientHttpRequestFactoryBuilder.httpComponents());
assertThat(getRequestConfig((RestTemplateBuilder) null).isRedirectsEnabled()).isFalse();
@@ -209,9 +209,8 @@ class TestRestTemplateTests {
return factory.createRequestConfig();
}
private HttpClient getJdkHttpClient(TestRestTemplate templateWithRedirects) {
JdkClientHttpRequestFactory requestFactory = (JdkClientHttpRequestFactory) templateWithRedirects
.getRestTemplate()
private HttpClient getJdkHttpClient(TestRestTemplate template) {
JdkClientHttpRequestFactory requestFactory = (JdkClientHttpRequestFactory) template.getRestTemplate()
.getRequestFactory();
return (HttpClient) ReflectionTestUtils.getField(requestFactory, "httpClient");
}

View File

@@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*/
@SpringJUnitConfig
@Testcontainers(disabledWithoutDocker = true)
class ServiceConnectionStartsConnectionOnceIntegrationTest {
class ServiceConnectionStartsConnectionOnceIntegrationTests {
@Container
@ServiceConnection

View File

@@ -30,7 +30,7 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import;
/**
* Imports idiomatic Testcontainer declaration classes into the Spring
* Imports idiomatic Testcontainers declaration classes into the Spring
* {@link ApplicationContext}. The following elements will be considered from the imported
* classes:
* <ul>

View File

@@ -34,7 +34,7 @@ public final class ConnectionFactoryUnwrapper {
}
/**
* Return the native {@link ConnectionFactory} by unwrapping ot from a
* Return the native {@link ConnectionFactory} by unwrapping from a
* {@link CachingConnectionFactory}. Return the given {@link ConnectionFactory} if no
* {@link CachingConnectionFactory} wrapper has been detected.
* @param connectionFactory a connection factory

View File

@@ -142,8 +142,7 @@ public enum LoggingSystemProperty {
}
/**
* Return the name of the application property name that can be used to set this
* property.
* Return the application property name that can be used to set this property.
* @return the application property name
* @since 3.4.0
*/

View File

@@ -228,8 +228,8 @@ public class Log4J2LoggingSystem extends AbstractLoggingSystem {
/**
* Reset the stream used by the fallback listener to the current system out. This
* allows the fallback lister to work with any captured output streams in a similar
* way to the {@code follow} attribute of the {@code literal Console} appender.
* allows the fallback listener to work with any captured output streams in a similar
* way to the {@code follow} attribute of the {@code Console} appender.
* @param statusLogger the status logger to update
*/
private void resetFallbackListenerStream(StatusLogger statusLogger) {

View File

@@ -45,13 +45,13 @@ class DebugLogbackConfigurator extends LogbackConfigurator {
}
@Override
public void appender(String name, Appender<?> appender) {
void appender(String name, Appender<?> appender) {
info("Adding appender '" + appender + "' named '" + name + "'");
super.appender(name, appender);
}
@Override
public void logger(String name, Level level, boolean additive, Appender<ILoggingEvent> appender) {
void logger(String name, Level level, boolean additive, Appender<ILoggingEvent> appender) {
info("Configuring logger '" + name + "' with level '" + level + "'. Additive: " + additive);
if (appender != null) {
info("Adding appender '" + appender + "' to logger '" + name + "'");
@@ -60,7 +60,7 @@ class DebugLogbackConfigurator extends LogbackConfigurator {
}
@Override
public void start(LifeCycle lifeCycle) {
void start(LifeCycle lifeCycle) {
info("Starting '" + lifeCycle + "'");
super.start(lifeCycle);
}