Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrects depreciated method getIpAddress in the docs #300

Merged
merged 1 commit into from
Mar 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/usage/generic_containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ tests have run.

The class rule provides methods for discovering how your tests can interact with the containers:

* `getIpAddress()` returns the IP address where the container is listening
* `getContainerIpAddress()` returns the IP address where the container is listening
* `getMappedPort(...)` returns the Docker mapped port for a port that has been exposed on the container

For example, with the Redis example above, the following will allow your tests to access the Redis service:
```java
String redisUrl = redis.getIpAddress() + ":" + redis.getMappedPort(6379);
String redisUrl = redis.getContainerIpAddress() + ":" + redis.getMappedPort(6379);
```