Testcontainers 2.0 deprecated org.testcontainers.containers.PostgreSQLContainer in favor of org.testcontainers.postgresql.PostgreSQLContainer. However, when replacing it in a @ServiceConnection bean, no R2DBC connection factory is discovered.

Comment From: wilkinsona

We don't support Testcontainers 2.0 at all yet. We can use this issue to track that as adapting to the deprecation of org.testcontainers.containers.PostgreSQLContainer will be a part of the upgrade.

Comment From: marcphilipp

FWIW 2.0 works for me when using the deprecated implementation class

Comment From: eddumelendez

I am working on this rn, will submit a PR tomorrow.

Comment From: snicoll

Gah, I missed that and started to work on it. @eddumelendez happy to review the PR then!

Comment From: snicoll

Closing in favor of PR #47664