Skip to content

Commit cea2cef

Browse files
committed
Replace 'Testcontainers framework' with just 'Testcontainers'
Signed-off-by: Vanio Begic <[email protected]>
1 parent bd96459 commit cea2cef

File tree

1 file changed

+6
-6
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/testing

1 file changed

+6
-6
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ In following sections we will describe some of the methods you can use to integr
99

1010
== Using via @Testcontainers JUnit5 extension
1111

12-
The Testcontainers framework provides JUnit5 extensions, which can be used to manage containers in your tests.
12+
The Testcontainers provides JUnit5 extensions, which can be used to manage containers in your tests.
1313
The extension is activated by applying the
1414

1515
Testcontainers can be used in a Spring Boot test as follows:
@@ -19,11 +19,11 @@ include-code::vanilla/MyIntegrationTests[]
1919
This will start up a Docker container running Neo4j (if Docker is running locally) before any of the tests are run.
2020
In most cases, you will need to configure the application to connect to the service running in the container.
2121

22-
In this case the lifecycle of the container instance is managed by Testcontainers framework, as described in official documentation.
22+
In this case the lifecycle of the container instance is managed by Testcontainers, as described in official documentation.
2323

2424
== Using via Spring managed beans
2525

26-
The containers provided by Testcontainers framework can be managed by Spring Boot as beans.
26+
The containers provided by Testcontainers can be managed by Spring Boot as beans.
2727
This method is often used in combination with javadoc:org.springframework.boot.testcontainers.service.connection.ServiceConnection[format=annotation].
2828

2929
To use Testcontainer contains as Spring beans we need to create a configuration class declaring the container as bean:
@@ -37,7 +37,7 @@ include-code::beandeclaration/SpringTest[]
3737

3838
== Using via importing container declaration classes
3939

40-
A common pattern with Testcontainers framework is to declare the Container instances as static fields in an interface
40+
A common pattern with Testcontainers is to declare the Container instances as static fields in an interface
4141
For example the following interface `MyInterface` declares two containers, one named `mongo` of type MongoDB and another named `neo` of type Neo4j:
4242

4343
include-code::importcontainers/MyInterface[]
@@ -49,8 +49,8 @@ include-code::importcontainers/MyConfiguration[]
4949

5050
== Lifecycle of managed containers
5151

52-
If you have used the annotations and extensions provided by Testcontainers framework, then the lifecycle of container instances is managed by the Testcontainers framework.
53-
Please refer to the official documentation for the information about lifecycle of the containers, when managed by the Testcontainers framework.
52+
If you have used the annotations and extensions provided by Testcontainers, then the lifecycle of container instances is managed by the Testcontainers.
53+
Please refer to the official documentation for the information about lifecycle of the containers, when managed by the Testcontainers.
5454

5555
When the containers are managed by Spring as beans, then the lifecycle is clearly defined by Spring.
5656
The container beans are created and started before the beans of other types are created.

0 commit comments

Comments
 (0)