Revise Testcontainers examples based on feedback

Closes gh-29939
This commit is contained in:
Sam Brannen
2023-02-07 15:55:00 +01:00
parent a2a676241c
commit 482482f62b
2 changed files with 3 additions and 6 deletions

View File

@@ -71,8 +71,7 @@ import java.lang.annotation.Target;
*
* @Container
* static GenericContainer redis =
* new GenericContainer(DockerImageName.parse("redis:5.0.3-alpine"))
* .withExposedPorts(6379);
* new GenericContainer("redis:5.0.3-alpine").withExposedPorts(6379);
*
* // ...
*