From 0518e6726b2817a5dc302e4ae545034e47919ea7 Mon Sep 17 00:00:00 2001 From: Abhinav Pandey Date: Sat, 16 Jul 2022 20:18:52 +0530 Subject: [PATCH] BAEL-3201 - Skipping test container based test --- ...ceIntegrationTest.java => ProductServiceManualTest.java} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename spring-boot-modules/spring-boot-testing-2/src/test/java/com/baeldung/redistestcontainers/service/{ProductServiceIntegrationTest.java => ProductServiceManualTest.java} (95%) diff --git a/spring-boot-modules/spring-boot-testing-2/src/test/java/com/baeldung/redistestcontainers/service/ProductServiceIntegrationTest.java b/spring-boot-modules/spring-boot-testing-2/src/test/java/com/baeldung/redistestcontainers/service/ProductServiceManualTest.java similarity index 95% rename from spring-boot-modules/spring-boot-testing-2/src/test/java/com/baeldung/redistestcontainers/service/ProductServiceIntegrationTest.java rename to spring-boot-modules/spring-boot-testing-2/src/test/java/com/baeldung/redistestcontainers/service/ProductServiceManualTest.java index 519db1b335..00c0c3a1f7 100644 --- a/spring-boot-modules/spring-boot-testing-2/src/test/java/com/baeldung/redistestcontainers/service/ProductServiceIntegrationTest.java +++ b/spring-boot-modules/spring-boot-testing-2/src/test/java/com/baeldung/redistestcontainers/service/ProductServiceManualTest.java @@ -10,8 +10,12 @@ import org.testcontainers.utility.DockerImageName; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; +/** + * Requires Docker running on the machine to run without errors + * Therefore, skipped from pipeline + */ @SpringBootTest -public class ProductServiceIntegrationTest { +public class ProductServiceManualTest { static { GenericContainer redis = new GenericContainer<>(DockerImageName.parse("redis:5.0.3-alpine"))