spring-batch icon indicating copy to clipboard operation
spring-batch copied to clipboard

Spring Batch Test doesn't make migration by default

Open stillya opened this issue 3 years ago • 0 comments

Bug description I'm not sure if this bug or not implemented yet I have simple test for job with TestContainers and it's failed because Spring Batch Test doesn't make migration by default. Workaround is to load BatchAutoConfiguration which have datasourceInitializer, Spring Batch Test also have datasourceInitializer, as far as I understand, but it's weird, it's work only with HSQLDB and I have to run it by hand.

Environment

  • Java 17
  • Spring Batch Test 4.3.6
  • TestContainers 1.16.3
  • PostgreSQL

Expected behavior Spring Batch Test have to make migration by default no matter what base and make it on the start of the test.

Minimal Complete Reproducible example I made repository with reproducible example, where you can find ParquetToCsvJobBatchTest. To make it green just uncomment one line with import configuration.

stillya avatar Aug 25 '22 08:08 stillya