Skip to content

Commit

Permalink
Merge pull request #300 from peter-evans/master
Browse files Browse the repository at this point in the history
Corrects depreciated method getIpAddress in the docs
  • Loading branch information
bsideup authored Mar 1, 2017
2 parents b38709c + fc61541 commit b1e1395
Showing 1 changed file with 2 additions and 2 deletions.
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);
```

0 comments on commit b1e1395

Please sign in to comment.