Skip to content

Commit ba62d9e

Browse files
committed
fix InfluxDBContainer's JavaDoc and remove deprecated APIs
1 parent b118771 commit ba62d9e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/influxdb/src/main/java/org/testcontainers/containers/InfluxDBContainer.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
import org.influxdb.InfluxDB;
44
import org.influxdb.InfluxDBFactory;
5-
import org.testcontainers.containers.traits.LinkableContainer;
65
import org.testcontainers.containers.wait.strategy.Wait;
76
import org.testcontainers.containers.wait.strategy.WaitAllStrategy;
87

8+
import java.util.Collections;
9+
import java.util.Set;
10+
911
/**
10-
* @link https://store.docker.com/images/influxdb
12+
* See <a href="https://store.docker.com/images/influxdb">https://store.docker.com/images/influxdb</a>
1113
*/
12-
public class InfluxDBContainer<SELF extends InfluxDBContainer<SELF>> extends GenericContainer<SELF>
13-
implements LinkableContainer {
14+
public class InfluxDBContainer<SELF extends InfluxDBContainer<SELF>> extends GenericContainer<SELF> {
1415

1516
public static final String VERSION = "1.4.3";
1617
public static final Integer INFLUXDB_PORT = 8086;
@@ -52,11 +53,10 @@ protected void configure() {
5253
}
5354

5455
@Override
55-
protected Integer getLivenessCheckPort() {
56-
return getMappedPort(INFLUXDB_PORT);
56+
public Set<Integer> getLivenessCheckPortNumbers() {
57+
return Collections.singleton(getMappedPort(INFLUXDB_PORT));
5758
}
5859

59-
6060
/**
6161
* Set env variable `INFLUXDB_HTTP_AUTH_ENABLED`.
6262
*

0 commit comments

Comments
 (0)