Update documentation according to Testcontainers example#29937
Update documentation according to Testcontainers example#29937samuelstein wants to merge 1 commit intospring-projects:mainfrom
Conversation
Update documentation according to testcontainer example. Fix spring-projects#29936
|
@samuelstein Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
|
@samuelstein Thank you for signing the Contributor License Agreement! |
|
The container in the example does not need to be manually started since the JUnit Jupiter extension behind the However, this PR did inspire me to review the examples which resulted in #29939. Thanks, Sam |
|
The thing is, that if you don't start the container explicitly in the DynamicPropertySource hook it's possible that you run in an timing issue when the hook will be called earlier than the container is started by the JUnit extension and this will result in an "Mapped port can only be obtained after the container is started" error. |
|
@eddumelendez, what are your thoughts on the matter? |
|
Hi, the javadoc is using |
|
Thanks for confirming that, @eddumelendez. |
Update documentation according to testcontainer example. Fix #29936