Open jenskreidler opened 5 years ago
Anyone who's tried my simple "UserService_IT" from the project I've linked?
IMHO this is a blocker upgrading and using arquillian-persistence in your JEE projects
Thanks for reporting this issue and providing reproducer :100: :1st_place_medal:
I will give it a spin this week.
Issue Overview
Problem with integration test state using transactions, @UsingDataSet and @ShouldMatchDataSet: It seems that Arquillian Persistence does not clean up a previous test-method's setup or commit a subsequent test-method's state.
Expected Behaviour
Method 1 executes: it seeds state with @UsingDataSet, test code manipulates persistence context. Method 2 executes subsequently: it seeds cleanly an other state with @UsingDataSet, test code manipluates persistence context and @ShouldMatchDataSet ensures database state-
Current Behaviour
With
arquillian-persistence:1.2.0.2
, method 2 gets a corrupted persistence state from method 1 and test code - a database insert - is not commited and thus verifyable using method 2's @ShouldMatchDataSet.Steps To Reproduce
mvn clean install
(usesarquillian-persistence:1.2.0.2
) => UserService_IT failspom.xml
, switcharquillian-persistence
to version1.1.13.0
=> UserService_IT succeedsAdditional information
Maybe this issue is related to https://github.com/arquillian/arquillian-extension-persistence/issues/123 ?