jpomykala / spring-jooq-flyway-testcontainers-junit5 Goto Github PK
View Code? Open in Web Editor NEW๐ Example project with configured Spring Boot, JooQ, TestContainers, MySQL container and JUnit5
๐ Example project with configured Spring Boot, JooQ, TestContainers, MySQL container and JUnit5
Hi Jakub (dzieล dobry)!
I'm trying to run your project on my local machine as I have a similar configuration in my personal project (spring + junit + jooq + flyway + testcontainers). I cloned the repo, but when I was trying to run
mvn clean test
I have got
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:5.2.4:migrate (default) on project spring-jooq-testcontainers-mysql: org.flywaydb.core.internal.exception.FlywaySqlException:
[ERROR] Unable to obtain connection from database (jdbc:mysql://localhost:3306/playground?useSSL=false) for user 'root': Communications link failure
I would like to know how did you manage to build the project (and run flyway-maven-plugin migration phase) before the test container has been started. Do I need to have a separate database instance to run flyway migration and JOOQ code generator and then junit will run integration tests against the actual testconainer? Or should it work in a different way? Thanks in advance. Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.