@Override protected void waitUntilContainerStarted() { getWaitStrategy().waitUntilReady(this); } }
@Override public void waitUntilReady(WaitStrategyTarget waitStrategyTarget) { Timeouts.doWithTimeout((int) timeout.toMillis(), TimeUnit.MILLISECONDS, () -> { for (WaitStrategy strategy : strategies) { strategy.waitUntilReady(waitStrategyTarget); } }); }
/** * Wait until the container has started. The default implementation simply * waits for a port to start listening; other implementations are available * as implementations of {@link org.testcontainers.containers.wait.strategy.WaitStrategy} * * @see #waitingFor(org.testcontainers.containers.wait.strategy.WaitStrategy) */ protected void waitUntilContainerStarted() { org.testcontainers.containers.wait.strategy.WaitStrategy waitStrategy = getWaitStrategy(); if (waitStrategy != null) { waitStrategy.waitUntilReady(this); } }
/** * Wait until the container has started. The default implementation simply * waits for a port to start listening; other implementations are available * as implementations of {@link org.testcontainers.containers.wait.strategy.WaitStrategy} * * @see #waitingFor(org.testcontainers.containers.wait.strategy.WaitStrategy) */ protected void waitUntilContainerStarted() { org.testcontainers.containers.wait.strategy.WaitStrategy waitStrategy = getWaitStrategy(); if (waitStrategy != null) { waitStrategy.waitUntilReady(this); } }
@Override public void waitUntilReady(WaitStrategyTarget waitStrategyTarget) { Timeouts.doWithTimeout((int) timeout.toMillis(), TimeUnit.MILLISECONDS, () -> { for (WaitStrategy strategy : strategies) { strategy.waitUntilReady(waitStrategyTarget); } }); }
@Override protected void waitUntilContainerStarted() { getWaitStrategy().waitUntilReady(this); } }
public void waitForReadyness() { waitStrategy().waitUntilReady(container); }