Closed axel3rd closed 4 years ago
The test result is
org.opentest4j.AssertionFailedError: expected: <9> but was: <2>
Here: https://github.com/axel3rd/mpg-grandslam-populator/blob/10fc295f259897ad88344df91f1951d451e27a0b/src/test/java/org/blonding/mpg/GrandslamPopulatorBatchApplicationTests.java#L31
Not understand why data.sql not inserted during this process:
data.sql
https://github.com/axel3rd/mpg-grandslam-populator/blob/10fc295f259897ad88344df91f1951d451e27a0b/src/test/resources/data.sql#L1-L10
When column name changed, there is an error into Spring context load => this file is inserted ... but where 😁 ?
After analyses:
spring.jpa.hibernate.ddl-auto=none
@SpringBatchTest
spring.batch.job.enabled=false
The test result is
Here: https://github.com/axel3rd/mpg-grandslam-populator/blob/10fc295f259897ad88344df91f1951d451e27a0b/src/test/java/org/blonding/mpg/GrandslamPopulatorBatchApplicationTests.java#L31
Not understand why
data.sql
not inserted during this process:https://github.com/axel3rd/mpg-grandslam-populator/blob/10fc295f259897ad88344df91f1951d451e27a0b/src/test/resources/data.sql#L1-L10
When column name changed, there is an error into Spring context load => this file is inserted ... but where 😁 ?