Skip to content

Commit 8b7b23a

Browse files
committed
Tagged testcases using docker
* if docker isn't installed, they won't fail the build anymore * can be excluded using -DexcludedGroups=docker
1 parent 240aae7 commit 8b7b23a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/eventstore/HazelcastEventStoreWithClientConfigTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2020 the original author or authors.
2+
* Copyright 2014-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
2121
import com.hazelcast.client.config.ClientConfig;
2222
import com.hazelcast.core.HazelcastInstance;
2323
import com.hazelcast.map.IMap;
24+
import org.junit.jupiter.api.Tag;
2425
import org.springframework.boot.autoconfigure.hazelcast.HazelcastClientFactory;
2526
import org.testcontainers.containers.GenericContainer;
2627
import org.testcontainers.junit.jupiter.Container;
@@ -29,11 +30,12 @@
2930
import de.codecentric.boot.admin.server.domain.events.InstanceEvent;
3031
import de.codecentric.boot.admin.server.domain.values.InstanceId;
3132

32-
@Testcontainers
33+
@Testcontainers(disabledWithoutDocker = true)
34+
@Tag("docker")
3335
public class HazelcastEventStoreWithClientConfigTest extends AbstractEventStoreTest {
3436

3537
@Container
36-
private static final GenericContainer hazelcastServer = new GenericContainer("hazelcast/hazelcast:4.0")
38+
private static final GenericContainer<?> hazelcastServer = new GenericContainer<>("hazelcast/hazelcast:4.0")
3739
.withExposedPorts(5701);
3840

3941
private final HazelcastInstance hazelcast;

0 commit comments

Comments
 (0)