This is an automated email from the ASF dual-hosted git repository.

adamsaghy pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 01911c41c4 FINERACT-2421: Skip testcontainer tests if docker is not 
available
01911c41c4 is described below

commit 01911c41c493895a0a1b3a02f30eae75e073b4d7
Author: Adam Saghy <[email protected]>
AuthorDate: Thu Feb 12 22:10:02 2026 +0100

    FINERACT-2421: Skip testcontainer tests if docker is not available
---
 .../test/java/org/apache/fineract/command/CommandBaseTest.java    | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git 
a/fineract-command/src/test/java/org/apache/fineract/command/CommandBaseTest.java
 
b/fineract-command/src/test/java/org/apache/fineract/command/CommandBaseTest.java
index 29ec3c6b3d..638a65ea6f 100644
--- 
a/fineract-command/src/test/java/org/apache/fineract/command/CommandBaseTest.java
+++ 
b/fineract-command/src/test/java/org/apache/fineract/command/CommandBaseTest.java
@@ -21,11 +21,14 @@ package org.apache.fineract.command;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.fineract.command.persistence.domain.CommandRepository;
 import org.apache.fineract.command.persistence.mapping.CommandMapper;
+import org.junit.jupiter.api.Assumptions;
+import org.junit.jupiter.api.BeforeAll;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.DynamicPropertyRegistry;
 import org.springframework.test.context.DynamicPropertySource;
+import org.testcontainers.DockerClientFactory;
 import org.testcontainers.containers.MariaDBContainer;
 import org.testcontainers.containers.MySQLContainer;
 import org.testcontainers.containers.Network;
@@ -66,6 +69,11 @@ abstract class CommandBaseTest {
         // mysql(registry);
     }
 
+    @BeforeAll
+    static void requireDocker() {
+        
Assumptions.assumeTrue(DockerClientFactory.instance().isDockerAvailable(), 
"Docker not available, skipping Testcontainers tests");
+    }
+
     private static void postgres(DynamicPropertyRegistry registry) {
         POSTGRES_CONTAINER.start();
 

Reply via email to