mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Remove deprecated code
Closes gh-50955
This commit is contained in:
-44
@@ -174,17 +174,6 @@ public enum TestImage {
|
||||
(container) -> ((MongoDBContainer) container).withStartupAttempts(5)
|
||||
.withStartupTimeout(Duration.ofMinutes(5))),
|
||||
|
||||
/**
|
||||
* A container image suitable for testing MongoDB using the deprecated
|
||||
* {@link org.testcontainers.containers.MongoDBContainer}.
|
||||
* @deprecated since 4.0.0 for removal in 4.2.0 in favor of {@link #MONGODB}
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||
MONGODB_DEPRECATED("mongo", "5.0.17", () -> org.testcontainers.containers.MongoDBContainer.class,
|
||||
(container) -> ((org.testcontainers.containers.MongoDBContainer) container).withStartupAttempts(5)
|
||||
.withStartupTimeout(Duration.ofMinutes(5))),
|
||||
|
||||
/**
|
||||
* A container image suitable for testing MongoDB Atlas.
|
||||
*/
|
||||
@@ -204,17 +193,6 @@ public enum TestImage {
|
||||
(container) -> ((Neo4jContainer) container).withStartupAttempts(5)
|
||||
.withStartupTimeout(Duration.ofMinutes(10))),
|
||||
|
||||
/**
|
||||
* A container image suitable for testing Neo4j using the deprecated
|
||||
* {@link org.testcontainers.containers.Neo4jContainer}.
|
||||
* @deprecated since 4.0.0 for removal in 4.2.0 in favor of {@link #NEO4J}
|
||||
*/
|
||||
@SuppressWarnings({ "deprecation", "rawtypes" })
|
||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||
NEO4J_DEPRECATED("neo4j", "5.26.11", () -> org.testcontainers.containers.Neo4jContainer.class,
|
||||
(container) -> ((org.testcontainers.containers.Neo4jContainer) container).withStartupAttempts(5)
|
||||
.withStartupTimeout(Duration.ofMinutes(10))),
|
||||
|
||||
/**
|
||||
* A container image suitable for testing Oracle Free.
|
||||
*/
|
||||
@@ -248,17 +226,6 @@ public enum TestImage {
|
||||
.withStartupTimeout(Duration.ofMinutes(3))
|
||||
.withEnv("PULSAR_PREFIX_advertisedAddress", "localhost")),
|
||||
|
||||
/**
|
||||
* A container image suitable for testing Pulsar using the deprecated
|
||||
* {@link org.testcontainers.containers.PulsarContainer}.
|
||||
* @deprecated since 4.0.0 for removal in 4.2.0 in favor of {@link #PULSAR}
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||
PULSAR_DEPRECATED("apachepulsar/pulsar", "3.3.3", () -> org.testcontainers.containers.PulsarContainer.class,
|
||||
(container) -> ((org.testcontainers.containers.PulsarContainer) container).withStartupAttempts(2)
|
||||
.withStartupTimeout(Duration.ofMinutes(3))),
|
||||
|
||||
/**
|
||||
* A container image suitable for testing RabbitMQ with support for both AMQP 0.9 and
|
||||
* 1.0. Queues can be declared using {@code rabbitmqadmin}.
|
||||
@@ -266,17 +233,6 @@ public enum TestImage {
|
||||
RABBITMQ("rabbitmq", "4.2-management", () -> RabbitMQContainer.class,
|
||||
(container) -> ((RabbitMQContainer) container).withStartupTimeout(Duration.ofMinutes(4))),
|
||||
|
||||
/**
|
||||
* A container image suitable for testing RabbitMQ using the deprecated
|
||||
* {@link org.testcontainers.containers.RabbitMQContainer}.
|
||||
* @deprecated since 4.0.0 for removal in 4.2.0 in favor of {@link #RABBITMQ}
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@Deprecated(since = "3.4.0", forRemoval = true)
|
||||
RABBITMQ_DEPRECATED("rabbitmq", "3.11-alpine", () -> org.testcontainers.containers.RabbitMQContainer.class,
|
||||
(container) -> ((org.testcontainers.containers.RabbitMQContainer) container)
|
||||
.withStartupTimeout(Duration.ofMinutes(4))),
|
||||
|
||||
/**
|
||||
* A container image suitable for testing Redis.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user