File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
fineract-command/src/test/java/org/apache/fineract/command Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2222import lombok .extern .slf4j .Slf4j ;
2323import org .apache .fineract .command .persistence .domain .CommandRepository ;
2424import org .apache .fineract .command .persistence .mapping .CommandMapper ;
25+ import org .junit .jupiter .api .Assumptions ;
26+ import org .junit .jupiter .api .BeforeAll ;
2527import org .springframework .beans .factory .annotation .Autowired ;
2628import org .springframework .boot .test .context .SpringBootTest ;
2729import org .springframework .test .context .ContextConfiguration ;
2830import org .springframework .test .context .DynamicPropertyRegistry ;
2931import org .springframework .test .context .DynamicPropertySource ;
32+ import org .testcontainers .DockerClientFactory ;
3033import org .testcontainers .containers .GenericContainer ;
3134import org .testcontainers .containers .Network ;
3235import org .testcontainers .junit .jupiter .Container ;
@@ -61,4 +64,9 @@ protected static void configure(DynamicPropertyRegistry registry) {
6164 + POSTGRES_CONTAINER .getMappedPort (5432 ) + "/fineract-test" );
6265 registry .add ("spring.datasource.platform" , () -> "postgresql" );
6366 }
67+
68+ @ BeforeAll
69+ static void requireDocker () {
70+ Assumptions .assumeTrue (DockerClientFactory .instance ().isDockerAvailable (), "Docker not available, skipping Testcontainers tests" );
71+ }
6472}
You can’t perform that action at this time.
0 commit comments