spock-dbunit
spock-dbunit copied to clipboard
Dbunit extension for spock avoiding a separate xml file
It would be nice, if we could use the "column sensing" feature of DBUnit. With this defining rows with null values wouldn't be so awkward.
Is there a plan to add @ExpectedDataset feature?
I have below code in my spec file: @DbUnit(configure={ IDatabaseTester it -> it.setUpOperation = InsertIdentityOperation.REFRESH it.tearDownOperation = InsertIdentityOperation.DELETE }) def content = { abc(id:123, name:'test') } This working finr in...
``` Caused by: groovy.lang.MissingMethodException: No signature of method: org.dbunit.DataSourceDatabaseTester.getConnection() is applicable for argument types: () values: [] Possible solutions: getConnection() at be.janbols.spock.extension.dbunit.support.DbUnitInterceptor$1.getConnection(DbUnitInterceptor.groovy:72) at au.com.foxtel.registry.external.DataSourceForTests$_closure2.doCall(DataSourceForTests.groovy:84) at be.janbols.spock.extension.dbunit.support.DbUnitInterceptor.configureTester(DbUnitInterceptor.groovy:95) ... 52 more ```