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

Add new WithTestResource annotation and deprecate QuarkusTestResource #41368

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

edeandrea
Copy link
Contributor

@edeandrea edeandrea commented Jun 22, 2024

New annotation replacing @QuarkusTestResource which sets restrictAnnotatedClass=true by default. Also deprecates existing @QuarkusTestResource annotation.

I refactored all of the tests in Quarkus to use the new annotation and made it so restrictAnnotatedClass for every test formerly using @QuarkusTestResource was unchanged. I also added some new tests to be sure both @QuarkusTestResource and @WithTestResource annotations work correctly.

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 22, 2024

/cc @gsmet (hibernate-orm,hibernate-search), @marko-bekhta (hibernate-search), @yrodiere (hibernate-orm,hibernate-search)

@edeandrea
Copy link
Contributor Author

/cc @geoand

@quarkus-bot quarkus-bot bot added the kind/enhancement New feature or request label Jun 26, 2024
@gsmet gsmet changed the title Add new WithTestResource annotation Add new WithTestResource annotation and deprecate QuarkusTestResource Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

Introduce @WithTestResource as an analogous to @QuarkusTestResource(restrictAnnotatedClass=true)
2 participants