zonkyio / embedded-database-spring-test

A library for creating isolated embedded databases for Spring-powered integration tests.
Apache License 2.0
399 stars 37 forks source link

Dependency error with org.testcontainers:testcontainers:1.17.1 #196

Closed blandir closed 2 years ago

blandir commented 2 years ago

Hello,

I tried to upgrade to org.testcontainers:postgresql:1.17.1 today. Now builds fail with

UsagesRestControllerTest > initializationError FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
        Caused by: org.springframework.beans.factory.BeanCreationException at ConstructorResolver.java:658
            Caused by: org.springframework.beans.BeanInstantiationException at SimpleInstantiationStrategy.java:185
                Caused by: io.zonky.test.db.shaded.com.google.common.util.concurrent.ExecutionError at Futures.java:1564
                    Caused by: java.lang.NoClassDefFoundError at MigrateFlywayDatabasePreparer.java:83
                        Caused by: java.lang.ClassNotFoundException at MigrateFlywayDatabasePreparer.java:83

MigrateFlywayDatabasePreparer.java:83 uses org.testcontainers.shaded.org.apache.commons.lang.StringUtils but org.testcontainers:testcontainers:1.17.1 now includes the Apache Commons lang3package instead of the lang package.

Could you please provide a new version with updated dependencies?

tomix26 commented 2 years ago

Hi @blandir, thanks for the report. I'll take a look at it at the weekend and try to fix it as soon as possible.