before this commit, @AutoConfigureTestDatabase(replace = NONE) is required for
@DataJpaTest
@Testcontainers
//@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
public class ApplicationDataJpaTests {
@Container
@ServiceConnection
static MySQLContainer<?> container = ...
Comment From: wilkinsona
Thanks for the suggestion. Unfortunately, I don't think that we can tell if the DataSource should be replaced depending on where the JdbcConnectionDetails have been defined. I would prefer that things are slightly more verbose but hopefully also more clear.