Remove Replace.NONE from @AutoConfigureTestDatabase for Testcontainers databases

Proprietary

Spring Boot 3.4 changed the default of @AutoConfigureTestDatabase(replace) from ANY to NON_TEST, which leaves an auto-configured DataSource in place when it connects to a test database. Replace.NONE is removed only when the test class wires such a database through a @ServiceConnection JDBC container or a @DynamicPropertySource that sets spring.datasource.url, since otherwise NON_TEST would replace the DataSource with an embedded one.

io.moderne.java.spring.boot3.RemoveReplaceNoneFromAutoConfigureTestDatabase
mod run . --recipe=io.moderne.java.spring.boot3.RemoveReplaceNoneFromAutoConfigureTestDatabase

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.