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

HibernateSpec and DataTest are incompatible #36

Open
anthonyMoreira opened this issue Jun 5, 2018 · 0 comments
Open

HibernateSpec and DataTest are incompatible #36

anthonyMoreira opened this issue Jun 5, 2018 · 0 comments

Comments

@anthonyMoreira
Copy link

anthonyMoreira commented Jun 5, 2018

HibernateSpec and DataTest are incompatible as they both create two different kind of datastore. As a results, it is impossible to have a unit test extending HibernateSpec and that test code using the mapping context.

It also results in some features that are not working as expected. For example the @transactional annotation on unit test doesnt work anymore if you implement DataTest, since GORM doesn't know which datastore to choose.

You can see a sample project with those cases here : https://github.com/anthonyMoreira/bug-hibernatespec

The integration between HibernateSpec and DomainUnitTest/ServiceUnitTest/DataTest should be transparent for the developpers and/or well documented.

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

1 participant