Testcontainers-java: Docs are inaccurate - DockerComposeContainer.withExposedService does not take a WaitStrategy in 1.6.0

Created on 23 Mar 2018  路  5Comments  路  Source: testcontainers/testcontainers-java

The Docker Compose docs state that you can wait for a container started by docker compose to come up by calling an overloaded withExposedService passing it a WaitStrategy.

This method doesn't exist - whether because it has been removed or the docs are for a not yet released version.

typdocs typquestion

All 5 comments

@Mahoney actually, the docs are from the future :D We just added this functionality and it is to-be-released soon, but since the docs were changed as part of the PR ( #600 ) you already see it on our website.

@rnorth we should think how to keep docs aligned with the latest release.

Thanks @Mahoney for letting us know 馃憤

@Mahoney FYI you can use JitPack to try this feature. See how to do it here:
https://www.testcontainers.org/usage.html#maven-dependencies

@bsideup Versioning of the docs seems like a good idea, we might be able to use this Gitbook plugin:
https://plugins.gitbook.com/plugin/versions

@kiview true. Just maybe we need to cleanup the tags first:
https://api.gitbook.com/book/testcontainers/testcontainers/versions/tags

released as part of 1.7.0

Was this page helpful?
0 / 5 - 0 ratings