This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 05120679b0efcd553de67f88ffe609ba43b77cb8 Author: Guillaume Nodet <[email protected]> AuthorDate: Wed Jul 15 17:09:54 2020 +0200 [CAMEL-11807] Upgrade camel-microprofile-fault-tolerance to junit5 --- components/camel-microprofile-config/pom.xml | 6 +++--- .../config/CamelMicroProfilePropertiesSourceTest.java | 6 ++++-- components/camel-microprofile-fault-tolerance/pom.xml | 2 +- .../FaultToleranceInheritErrorHandlerTest.java | 4 ++-- .../faulttolerance/FaultToleranceManagementTest.java | 6 ++++-- .../FaultToleranceRefConfigurationNoReflectionTest.java | 6 ++++-- .../FaultToleranceRefConfigurationTest.java | 6 ++++-- .../FaultToleranceRouteBulkheadFallbackTest.java | 4 ++-- .../faulttolerance/FaultToleranceRouteBulkheadOkTest.java | 4 ++-- .../faulttolerance/FaultToleranceRouteFallbackTest.java | 4 ++-- .../FaultToleranceRouteFallbackViaNetworkTest.java | 8 ++++++-- .../faulttolerance/FaultToleranceRouteOkTest.java | 6 ++++-- .../faulttolerance/FaultToleranceRouteRejectedTest.java | 8 ++++++-- .../faulttolerance/FaultToleranceTimeoutTest.java | 13 +++++++++++-- .../FaultToleranceTimeoutThreadPoolTest.java | 15 +++++++++++++-- .../FaultToleranceTimeoutWithFallbackTest.java | 6 ++++-- .../SpringFaultToleranceRouteFallbackTest.java | 4 ++-- .../faulttolerance/SpringFaultToleranceRouteOkTest.java | 4 ++-- 18 files changed, 76 insertions(+), 36 deletions(-) diff --git a/components/camel-microprofile-config/pom.xml b/components/camel-microprofile-config/pom.xml index f362e38..203ae5a 100644 --- a/components/camel-microprofile-config/pom.xml +++ b/components/camel-microprofile-config/pom.xml @@ -54,7 +54,7 @@ <!-- testing --> <dependency> <groupId>org.apache.camel</groupId> - <artifactId>camel-test</artifactId> + <artifactId>camel-test-junit5</artifactId> <scope>test</scope> </dependency> @@ -66,8 +66,8 @@ </dependency> <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter</artifactId> <scope>test</scope> </dependency> <dependency> diff --git a/components/camel-microprofile-config/src/test/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSourceTest.java b/components/camel-microprofile-config/src/test/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSourceTest.java index 48d5131..c951db7 100644 --- a/components/camel-microprofile-config/src/test/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSourceTest.java +++ b/components/camel-microprofile-config/src/test/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSourceTest.java @@ -26,11 +26,12 @@ import org.apache.camel.builder.RouteBuilder; import org.apache.camel.spi.PropertiesComponent; import org.apache.camel.spi.PropertiesSource; import org.apache.camel.spi.Registry; -import org.apache.camel.test.junit4.CamelTestSupport; +import org.apache.camel.test.junit5.CamelTestSupport; import org.assertj.core.api.Assertions; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.spi.ConfigProviderResolver; -import org.junit.Test; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Test; public class CamelMicroProfilePropertiesSourceTest extends CamelTestSupport { @@ -54,6 +55,7 @@ public class CamelMicroProfilePropertiesSourceTest extends CamelTestSupport { } @Override + @AfterEach public void tearDown() throws Exception { ConfigProviderResolver.instance().releaseConfig(config); super.tearDown(); diff --git a/components/camel-microprofile-fault-tolerance/pom.xml b/components/camel-microprofile-fault-tolerance/pom.xml index 172935a..9ada78c 100644 --- a/components/camel-microprofile-fault-tolerance/pom.xml +++ b/components/camel-microprofile-fault-tolerance/pom.xml @@ -59,7 +59,7 @@ <!-- for testing --> <dependency> <groupId>org.apache.camel</groupId> - <artifactId>camel-test-spring</artifactId> + <artifactId>camel-test-spring-junit5</artifactId> <scope>test</scope> </dependency> <dependency> diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceInheritErrorHandlerTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceInheritErrorHandlerTest.java index 160f515..3513909 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceInheritErrorHandlerTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceInheritErrorHandlerTest.java @@ -17,8 +17,8 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; public class FaultToleranceInheritErrorHandlerTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceManagementTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceManagementTest.java index 75682e3..af191e9 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceManagementTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceManagementTest.java @@ -20,8 +20,10 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; public class FaultToleranceManagementTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRefConfigurationNoReflectionTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRefConfigurationNoReflectionTest.java index 30d5b28..93008f5 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRefConfigurationNoReflectionTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRefConfigurationNoReflectionTest.java @@ -23,8 +23,10 @@ import org.apache.camel.builder.RouteBuilder; import org.apache.camel.model.FaultToleranceConfigurationDefinition; import org.apache.camel.spi.BeanIntrospection; import org.apache.camel.spi.CircuitBreakerConstants; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; public class FaultToleranceRefConfigurationNoReflectionTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRefConfigurationTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRefConfigurationTest.java index ada8e28..aa08f32 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRefConfigurationTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRefConfigurationTest.java @@ -23,8 +23,10 @@ import org.apache.camel.CamelContext; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.model.FaultToleranceConfigurationDefinition; import org.apache.camel.spi.CircuitBreakerConstants; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; public class FaultToleranceRefConfigurationTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteBulkheadFallbackTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteBulkheadFallbackTest.java index 9fb13ed..fbbdf4d 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteBulkheadFallbackTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteBulkheadFallbackTest.java @@ -18,8 +18,8 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.spi.CircuitBreakerConstants; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; public class FaultToleranceRouteBulkheadFallbackTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteBulkheadOkTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteBulkheadOkTest.java index ea2ec86..9630510 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteBulkheadOkTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteBulkheadOkTest.java @@ -18,8 +18,8 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.spi.CircuitBreakerConstants; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; public class FaultToleranceRouteBulkheadOkTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteFallbackTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteFallbackTest.java index 3b6a98f..0e12cb3 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteFallbackTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteFallbackTest.java @@ -18,8 +18,8 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.spi.CircuitBreakerConstants; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; public class FaultToleranceRouteFallbackTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteFallbackViaNetworkTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteFallbackViaNetworkTest.java index 456b55e..62f6fe9 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteFallbackViaNetworkTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteFallbackViaNetworkTest.java @@ -17,8 +17,12 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; + +import static org.apache.camel.test.junit5.TestSupport.assertIsInstanceOf; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.fail; public class FaultToleranceRouteFallbackViaNetworkTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteOkTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteOkTest.java index 2a8954f..1484582 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteOkTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteOkTest.java @@ -22,8 +22,10 @@ import org.apache.camel.LoggingLevel; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.spi.BeanIntrospection; import org.apache.camel.spi.CircuitBreakerConstants; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; public class FaultToleranceRouteOkTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteRejectedTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteRejectedTest.java index 8bec32b..4ca8785 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteRejectedTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceRouteRejectedTest.java @@ -18,8 +18,12 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.spi.CircuitBreakerConstants; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; + +import static org.apache.camel.test.junit5.TestSupport.assertIsInstanceOf; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.fail; public class FaultToleranceRouteRejectedTest extends CamelTestSupport { diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutTest.java index ae0785f..9d38d34 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutTest.java @@ -18,16 +18,25 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.RoutesBuilder; import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.test.junit4.CamelTestSupport; +import org.apache.camel.test.junit5.CamelTestSupport; import org.eclipse.microprofile.faulttolerance.exceptions.CircuitBreakerOpenException; import org.eclipse.microprofile.faulttolerance.exceptions.TimeoutException; -import org.junit.Test; +import org.junit.jupiter.api.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import static org.apache.camel.test.junit5.TestSupport.assertIsInstanceOf; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; /** * FaultTolerance using timeout with Java DSL */ public class FaultToleranceTimeoutTest extends CamelTestSupport { + protected final Logger log = LoggerFactory.getLogger(getClass()); + @Test public void testFast() throws Exception { // this calls the fast route and therefore we get a response diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutThreadPoolTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutThreadPoolTest.java index f521278..06e0d9b 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutThreadPoolTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutThreadPoolTest.java @@ -21,17 +21,28 @@ import java.util.concurrent.ScheduledExecutorService; import org.apache.camel.BindToRegistry; import org.apache.camel.RoutesBuilder; import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.test.junit4.CamelTestSupport; +import org.apache.camel.test.junit5.CamelTestSupport; import org.apache.camel.util.concurrent.SizedScheduledExecutorService; import org.eclipse.microprofile.faulttolerance.exceptions.CircuitBreakerOpenException; import org.eclipse.microprofile.faulttolerance.exceptions.TimeoutException; -import org.junit.Test; +import org.junit.jupiter.api.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import static org.apache.camel.test.junit5.TestSupport.assertIsInstanceOf; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; /** * FaultTolerance using timeout and custom thread pool with Java DSL */ public class FaultToleranceTimeoutThreadPoolTest extends CamelTestSupport { + protected final Logger log = LoggerFactory.getLogger(getClass()); + @BindToRegistry public ScheduledExecutorService myThreadPool() { return context().getExecutorServiceManager().newScheduledThreadPool(this, "myThreadPool", 2); diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutWithFallbackTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutWithFallbackTest.java index 43f954f..1ceb2f2 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutWithFallbackTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/FaultToleranceTimeoutWithFallbackTest.java @@ -18,8 +18,10 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.RoutesBuilder; import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; /** * FaultTolerance using timeout and fallback with Java DSL diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/SpringFaultToleranceRouteFallbackTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/SpringFaultToleranceRouteFallbackTest.java index ae8411d..2bc1d44 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/SpringFaultToleranceRouteFallbackTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/SpringFaultToleranceRouteFallbackTest.java @@ -17,8 +17,8 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.spi.CircuitBreakerConstants; -import org.apache.camel.test.spring.CamelSpringTestSupport; -import org.junit.Test; +import org.apache.camel.test.spring.junit5.CamelSpringTestSupport; +import org.junit.jupiter.api.Test; import org.springframework.context.support.AbstractApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.test.annotation.DirtiesContext; diff --git a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/SpringFaultToleranceRouteOkTest.java b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/SpringFaultToleranceRouteOkTest.java index 8877564..428c555 100644 --- a/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/SpringFaultToleranceRouteOkTest.java +++ b/components/camel-microprofile-fault-tolerance/src/test/java/org/apache/camel/component/microprofile/faulttolerance/SpringFaultToleranceRouteOkTest.java @@ -17,8 +17,8 @@ package org.apache.camel.component.microprofile.faulttolerance; import org.apache.camel.spi.CircuitBreakerConstants; -import org.apache.camel.test.spring.CamelSpringTestSupport; -import org.junit.Test; +import org.apache.camel.test.spring.junit5.CamelSpringTestSupport; +import org.junit.jupiter.api.Test; import org.springframework.context.support.AbstractApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.test.annotation.DirtiesContext;
