I'm working on some integration tests and we are using DBUnit. On class level I use @DatabaseSetup annotation together with @DatabaseTearDown. On each test method I have @ExpectedDatabase and after running tests I get such error:
java.lang.Exception: junit.framework.ComparisonFailure: row count (table=SCHEMA.MY_TABLE)
Expected :1
Actual :0
I assume that before ExpectedDatabase those data were deleted by DatabaseTearDown. How to avoid such behaviour?
Aucun commentaire:
Enregistrer un commentaire