testcontainers-java
testcontainers-java copied to clipboard
NoSuchMethodError on 1.12.3 & 1.12.4 (My project use quarkus, kotlin)
I got error:
java.lang.NoSuchMethodError: org.testcontainers.containers.JdbcDatabaseContainer.withReuse(Z)Lorg/testcontainers/containers/GenericContainer;
at org.testcontainers.containers.JdbcDatabaseContainerProvider.newInstanceFromConnectionUrl(JdbcDatabaseContainerProvider.java:73)
at org.testcontainers.containers.PostgreSQLContainerProvider.newInstance
But, It's OK on 1.12.2
This is not a bug.
Make sure that you have org.testcontainers:testcontainers dependency of the same version (or higher) as org.testcontainers:postgresql.
Many thanks.
I have missed org.testcontainers:testcontainers dependency