Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class-level @Transactional is ignored if method has @ShouldMatchDataSet #123

Open
rdicroce opened this issue Apr 4, 2019 · 2 comments
Open

Comments

@rdicroce
Copy link

rdicroce commented Apr 4, 2019

Issue Overview

In arquillian.xml, I have the default transaction mode set to DISABLED. In a test class, I put @Transactional(TransactionMode.COMMIT) at the class level. I put @ShouldMatchDataSet on one method within that class, without defining @Transactional at the method level.

Expected Behaviour

The method should inherit the class level setting.

Current Behaviour

The method inherts the default setting from arquillian.xml.

Additional Information

The method correctly inherits the class level setting if @ShouldMatchDataSet is removed. Specifying @Transactional(TransactionMode.COMMIT) on the method level works correctly.

@bartoszmajsak
Copy link
Member

Thanks for reporting the issue. Could you share versions of libraries you are using?

@rdicroce
Copy link
Author

APE is at 2.0.0-alpha-7. IIRC I tested transaction extension 1.0.3 and 1.0.5 and had the problem with both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants