Skip to content

Commit 990a7dc

Browse files
committed
Fix docs
1 parent de41ece commit 990a7dc

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

docs/features/creating_container.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,8 @@ It is suggested that developers treat `DockerImageName`s as you would any other
3434
A generic container rule can be used with any public docker image; for example:
3535

3636
<!--codeinclude-->
37-
[Creating a Redis container (JUnit 4)](../examples/junit4/generic/src/test/java/generic/ContainerCreationTest.java) inside_block:simple
37+
[Creating a Redis container](../examples/junit5/redis/src/test/java/quickstart/RedisBackedCacheIntTest.java) inside_block:container
3838
<!--/codeinclude-->
3939

40-
Further options may be specified:
41-
42-
<!--codeinclude-->
43-
[Creating a container with more options (JUnit 4)](../examples/junit4/generic/src/test/java/generic/ContainerCreationTest.java) inside_block:withOptions
44-
<!--/codeinclude-->
45-
46-
These containers, as `@ClassRule`s, will be started before any tests in the class run, and will be destroyed after all
40+
The container, as `@Container`, will be started before any tests in the class run, and will be destroyed after all
4741
tests have run.

docs/features/creating_images.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Testcontainers will `docker build` a temporary container image, and will use it
1313

1414
`ImageFromDockerfile` accepts arbitrary files, strings or classpath resources to be used as files in the build context.
1515
At least one of these needs to be a `Dockerfile`.
16+
1617
```java
17-
@Rule
18-
public GenericContainer dslContainer = new GenericContainer(
18+
GenericContainer container = new GenericContainer(
1919
new ImageFromDockerfile()
2020
.withFileFromString("folder/someFile.txt", "hello")
2121
.withFileFromClasspath("test.txt", "mappable-resource/test-resource.txt")

docs/test_framework_integration/manual_lifecycle_control.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Manual container lifecycle control
22

3-
While Testcontainers was originally built with JUnit 4 integration in mind, it is fully usable with other test
4-
frameworks, or with no framework at all.
3+
Testcontainers is fully usable with any test framework, or with no framework at all.
54

65
## Manually starting/stopping containers
76

0 commit comments

Comments
 (0)