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

Stores analogue to @DataJpaTest #961

Open
joshuajaharwood opened this issue Jun 23, 2022 · 0 comments
Open

Stores analogue to @DataJpaTest #961

joshuajaharwood opened this issue Jun 23, 2022 · 0 comments

Comments

@joshuajaharwood
Copy link

Is your feature request related to a problem? Please describe.
Injecting a Store in to a unit test class annotated with @DataJpaTest is unsupported, and throws an exception.

Describe the solution you'd like
A Spring Content analogue to @DataJpaTest for unit testing purposes, such as @StoresJpaTest

Describe alternatives you've considered
I'm not aware of any real alternatives, except for running the same Spring Content code as a real class on a real database, but doing so without an @jpatest annotation prevents transactions from being rolled back.

Additional context
As discussed on gitter.

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

No branches or pull requests

2 participants