257 Commits
Author SHA1 Message Date
Stéphane NicollandCatiaCorreia catia.correia97@gmail.com 9e656c1554 Remove unnecessary field initialization
Closes gh-45168

Co-authored-by: CatiaCorreia catia.correia97@gmail.com
2025-11-13 10:21:05 +01:00
Stéphane Nicoll 8b71458025 Adapt checkstyle rules for 3.4.x
See gh-46927
2025-08-21 07:31:40 +02:00
Johnny Lim fb99badf16 Remove redundant suppressions from Checkstyle configuration
See gh-46927

Signed-off-by: Johnny Lim <izeye@naver.com>
2025-08-21 07:31:23 +02:00
Andy Wilkinson 25c29b52b8 Remove redundant suppressions
See gh-46914
2025-08-20 08:44:13 +01:00
Nicolas Garea 4c76392255 Remove duplicate suppression in Checkstyle configuration
See gh-46914

Signed-off-by: Nicolas Garea <nicogareacidre@gmail.com>
2025-08-20 08:44:04 +01:00
Dmytro Nosan 6df1b88c7a Update checkstyle configuration to use a checkstyle-header.txt file
See gh-46604

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-07-31 08:18:24 +02:00
Stéphane Nicoll 079bf986f2 Polish "Do not set primitive default value for unsupported expressions"
See gh-46551
2025-07-28 12:49:34 +02:00
Johnny Lim 62f379cbbb Add SpringHeaderCheck to enforce using "2012-present"
This commit also fixes copyright headers that don't follow it.

See gh-46527

Signed-off-by: Johnny Lim <izeye@naver.com>
2025-07-25 16:27:36 +02:00
Phillip Webb ab41199880 Update copyright year for checkstyle and eclipse
Closes gh-46065
2025-06-20 17:23:16 -07:00
Stéphane Nicoll 5e65e929b7 Merge branch '3.3.x' into 3.4.x
Closes gh-45988
2025-06-17 14:20:59 +02:00
Nicolas Garea 120aab0693 Remove double comma in Checkstyle configuration
See gh-45975

Signed-off-by: Nicolas Garea <nicogareacidre@gmail.com>
2025-06-17 14:19:22 +02:00
Andy Wilkinson ec3eeb7185 Merge branch '3.3.x' into 3.4.x
Closes gh-45912
2025-06-12 10:06:22 +01:00
Andy Wilkinson ca21600fae Use Framework's StreamUtils instead of Commons Compress's IOUtils
Closes gh-45911
2025-06-12 10:00:30 +01:00
Stéphane Nicoll 1bf356f056 Merge branch '3.3.x' into 3.4.x
Closes gh-45737
2025-06-02 16:24:13 +02:00
Stéphane Nicoll 43e040e5b4 Fix order of illegal classes
See gh-45635
2025-06-02 16:23:39 +02:00
Yanming Zhou 9ccd1f0726 Prevent that only org.springframework.core.ResolvableType is used
See gh-45635

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-06-02 16:19:03 +02:00
Andy Wilkinson 492a4abd70 Merge branch '3.3.x' into 3.4.x
Closes gh-45645
2025-05-23 09:29:23 +01:00
Andy Wilkinson 7628ae8503 Check Kotlin code using Detekt
Closes gh-45583
2025-05-23 09:22:08 +01:00
Phillip Webb 19ae4fbba7 Merge branch '3.3.x' into 3.4.x
Closes gh-45366
2025-05-05 22:10:17 -07:00
Vanio Begic 4a98b1787f Document methods of starting Testcontainer containers
Update the reference documentation to provide more details about the
three supported methods of starting Testcontainer containers.

See gh-44187

Signed-off-by: Vanio Begic <vanio.begic123@gmail.com>
2025-05-05 22:08:06 -07:00
Andy Wilkinson b1fb36bf4b Merge branch '3.3.x' into 3.4.x
Closes gh-44968
2025-04-01 10:31:59 +01:00
Andy Wilkinson a8381e7cbd Ensure that only spring-core's ReflectionUtils is used
Closes gh-44837
2025-04-01 10:30:58 +01:00
Andy Wilkinson 59ddba1063 Merge branch '3.3.x' into 3.4.x
Closes gh-44697
2025-03-12 15:48:36 +00:00
Andy Wilkinson 9b15b4bce9 Consolidate mock web server factories
Closes gh-44674
2025-03-12 15:26:47 +00:00
Stéphane Nicoll b7979cf443 Use AbstractAotProcessor.AOT_PROCESSING instead of duplicate constant
Closes gh-42461
2024-10-18 10:12:01 +02:00
Andy Wilkinson ef09753fcb Merge branch '3.2.x' into 3.3.x
See gh-41857
2024-08-15 10:26:29 +01:00
Andy Wilkinson 80115abe81 Remove suppressions that are no longer needed
See gh-41853
2024-08-15 10:25:14 +01:00
Andy Wilkinson b0d4f1d356 Merge branch '3.2.x' into 3.3.x
Closes gh-41257
2024-06-27 10:16:36 +01:00
Andy Wilkinson 654016af7f Move Docker-related test support into a separate module
See gh-41228
2024-06-26 19:47:35 +01:00
Andy Wilkinson d78c7b541a Introduce docker-test plugin for running tests that require Docker
See gh-41228
2024-06-26 19:45:21 +01:00
Phillip Webb f2c778a5a0 Merge branch '3.2.x'
Closes gh-41168
2024-06-19 22:44:12 -07:00
Andy Wilkinson 43cd24102f Rework Docker Compose integration tests
This commit introduces a new annotation, `@DockerComposeTest`,
that allows a test class to have multiple tests, each of which
uses a different Docker Compose YAML file.

Closes gh-41154
2024-06-19 22:34:38 -07:00
Andy Wilkinson 2d979bf06e Merge branch '3.2.x'
Closes gh-40863
2024-05-22 09:16:57 +01:00
Andy Wilkinson 468e246dbb Make sure container's started before connection details use it
Prior to this commit, a Testcontainer that was managed as a bean
would not have been started in time if it was accessed before
the bean factory's configuration had been frozen. A common way
for this to occur is when using JPA. The entity manager factory
bean is LoadTimeWeaverAware which causes it to be created before
configuration is frozen. Creating this bean requires the DataSource
which in turn requires the JdbcConnectionDetails and its JDBC URL.
Getting the JDBC URL From the connection details requires the
container hosting the SQL database to have been started.

This commit updates ContainerConnectionDetails, the super-class for
all Testcontainer-based ConnectionDetails implementations, to publish
an event when the Container is retrieved from the details. When this
event is published, TestcontainersLifecycleBeanPostProcessor
initializes all containers that are defined as beans.

Closes gh-40585
2024-05-22 09:15:21 +01:00
Scott Frederick 48632b212f Merge branch '3.2.x'
Closes gh-40819
2024-05-17 11:42:21 -05:00
Scott Frederick 7f2b917851 Merge branch '3.1.x' into 3.2.x
Closes gh-40818
2024-05-17 11:41:23 -05:00
Scott Frederick 70aceb21eb Relocate test CNB builder and buildpack
The test CNB builder and buildpack used in integration tests have moved
from a projects.registry.vmware.com registry to ghcr.io/spring-io. This
commit modifies tests to use the new location.

Closes gh-40800
2024-05-17 10:59:41 -05:00
Moritz Halbritter 4047c00aa5 Implement SBOM actuator endpoint
Closes gh-39799
2024-03-21 18:06:48 -07:00
Phillip Webb 91d150c3d4 Apply nohttp check per-project rather than at root
Switch nohttp checks to a convention that is applied per-project rather
than at the root. This should help to reduce memory consumption.

Closes gh-40013
2024-03-18 13:59:55 -07:00
Phillip Webb e44ec27fd6 Add node folders to nohttp check suppressions 2024-02-27 23:16:46 -08:00
Andy Wilkinson bfc9ef8bc5 Merge branch '3.2.x'
Closes gh-39765
2024-02-27 12:39:28 +00:00
Andy Wilkinson db0fcc5626 Merge branch '3.1.x' into 3.2.x
Closes gh-39764
2024-02-27 12:39:14 +00:00
Andy Wilkinson 54cdc83337 Only reference Gradle tasks beneath org.gradle.api
Fixes gh-39584
2024-02-27 12:38:07 +00:00
Moritz Halbritter 8ec463c688 Polish "Change Banner declaration with new Java Syntax"
See gh-39585
2024-02-16 09:09:13 +01:00
Brian Clozel 0321a8a05b Configure ObservationRegistry on JmsListener
Prior to this commit, we set in gh-37388 the ObservationRegistry on the
auto-configured JmsTemplate bean. This enables observations and context
propagation when sending JMS messages.

This commit applies the same to the `DefaultJmsListenerContainerFactory`
and the `DefaultJmsListenerContainerFactoryConfigurer`, in order to
enable observations on `@JmsListener` annotated methods.

This commit also refactors the support implemented in gh-37388 to avoid
relying on a bean post processor and instead set the observation
registry directly in the main auto-configuration: while Micrometer core
is an actuator-only dependency, Micrometer Observation API is a compile
dependnecy for spring-jms itself and there is no need to separate
concerns there.

Fixes gh-38613
2023-12-01 09:36:00 +01:00
Phillip Webb 5dc5c2a4bc Rename KeyVerifier to CertificateMatcher
Rename `KeyVerifier` to `CertificateMatcher` and refactor some
of the internals. This commit also adds test helper classes to
help simplify some of the tests.

See gh-38173
2023-11-01 16:10:31 -07:00
Moritz Halbritter c7bae80585 Merge branch '3.1.x'
Closes gh-38004
2023-10-24 14:09:18 +02:00
Moritz Halbritter 6fb127e635 Merge branch '3.0.x' into 3.1.x
Closes gh-38003
2023-10-24 14:08:29 +02:00
Moritz Halbritter 9f6d44202b Merge branch '2.7.x' into 3.0.x
Closes gh-38002
2023-10-24 14:07:15 +02:00
Moritz Halbritter bf97e6dad8 Ban use of AssertJ assertThatThrownBy
Use assertThatExceptionOfType instead.

Closes gh-37968
2023-10-24 14:06:52 +02:00