What I have: I'm developing a microservice, using Spring Boot with Web and SpringMyBatis. For CI integration tests I'll use a remote MySQL database, for local integration tests I'll use H2. I've got different application.yml file for both databases.
My problem: Since I want to create integration tests that will run on both databases, and I'll have to use different JDBC drivers (my tests will check directly on database what has been inserted/modified), what's the best way to do that? Could be a solution to use Spring JDBC to query my database, so that my datasource will be "picked" directly from application properties?