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

Make sure that test callbacks always work on the proper test method #10675

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jul 13, 2020

Without this fix, the testMethod of QuarkusTestMethodContext was using the method of the original class - which was not of much use since for example annotations could not be fetched unless the callback itself resorted to classloader hacks.

Furthermore, the callbacks were misbehaving when multiple test profiles were being used in the testsuite.

Fixes: #10623

@geoand geoand force-pushed the #10623 branch 3 times, most recently from 9e439f2 to ec45cc2 Compare July 13, 2020 12:31
@famod
Copy link
Member

famod commented Jul 13, 2020

Interesting: This one test failure is the same DevMojo test that you disabled and I re-enabled, but this time it is on Ubuntu.
And of course it is not related to this change.

@geoand
Copy link
Contributor Author

geoand commented Jul 13, 2020

Yeah, I think that test will be to be disabled completely...

@geoand
Copy link
Contributor Author

geoand commented Jul 15, 2020

@stuartwdouglas mind taking a quick look please?

Thanks!

@stuartwdouglas stuartwdouglas merged commit 0fe9e89 into quarkusio:master Jul 16, 2020
@stuartwdouglas stuartwdouglas added this to the 1.7.0 - master milestone Jul 16, 2020
@geoand geoand deleted the #10623 branch July 16, 2020 06:32
@gsmet gsmet modified the milestones: 1.7.0 - master, 1.6.1.Final Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JUnit Extension is loaded with wrong classloader inside @QuarkusTest
4 participants