0

I need to write DataJpaTest for the repository tests using the oracle test container. Using

spring.liquibase.change-log=classpath:/liquibase/liquibaseChangeLog.xml

but Liquibase file exists in a different module called database

Project structure:

- project:
        - database
            -liquibase
                  -liquibaseChangeLog.xml
            - build.gradle
        -service
           - src
               - test
                   - resources
                       - application-test.properties
           - build.gradle

I have a database module dependency added in service/build.gralde and in application-test.properties

spring.liquibase.change-log=classpath:/liquibase/liquibaseChangeLog.xml

Oracle container spins up by the test container fine but not loading table data into the oracle.

I have reused the container to see whether it has started first to load the liquibase, that is fine.

0 Answers0