diff --git a/src/test/java/tech/jhipster/lite/generator/server/springboot/database/mysql/application/MySQLApplicationServiceIT.java b/src/test/java/tech/jhipster/lite/generator/server/springboot/database/mysql/application/MySQLApplicationServiceIT.java index 8b0cf8ae415..ef443cfbd20 100644 --- a/src/test/java/tech/jhipster/lite/generator/server/springboot/database/mysql/application/MySQLApplicationServiceIT.java +++ b/src/test/java/tech/jhipster/lite/generator/server/springboot/database/mysql/application/MySQLApplicationServiceIT.java @@ -65,7 +65,7 @@ void shouldInit() { assertFileContent( project, getPath(TEST_RESOURCES, "config/application.properties"), - List.of("spring.datasource.url=jdbc:tc:mysql:8.0.27:///jhipster", "spring.datasource.username=jhipster") + List.of("spring.datasource.url=jdbc:tc:" + MySQL.getDockerImageName() + ":///jhipster", "spring.datasource.username=jhipster") ); }