jpa-unit icon indicating copy to clipboard operation
jpa-unit copied to clipboard

@ExpectedDataSets should cope with data subsets

Open dadrus opened this issue 8 years ago • 0 comments

As of today the implementation of @ExpectedDataSets fully relies on the comparison implementation provided by DbUnit. DbUnit however imposes a restriction: adding a new row to a table which is referenced by the expected data set but not included in it, will lead to a comparison error. The aforementioned behavior contradicts the database bootstrapping approach. Here one would usually not only want to create the database schema, but also some initial data, which might be extended/modified by the implemented test methods. For this a further cleanup strategy might be required.

dadrus avatar Mar 11 '17 22:03 dadrus