-
Notifications
You must be signed in to change notification settings - Fork 57
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
Changes to pass the DI TCK #550
Conversation
Signed-off-by: Jonathan Coustick <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a field of expertise of mine, but the tests pass and the TCK passes.
I spoke to you in Teams about the changes made to NegativeMethodTest#testStaticMethod and NegativeFieldTest#testStaticField. For transparency: In short, those tests now check that nothing gets injected rather than checking an exception gets thrown when attempting to inject
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At a glance this looks very good! Thanks Jonathan!
Just a question, did you check whether Payara and/or GlassFish still passes all tests (e.g. quicklook, samples, tck, etc) with this?
@smillidge From the Jersey perspective, I'd say the change is ok, since what it threw the exception before, now works. But we would need to have the HK2 (perhaps staging) at hand to run the tests to be sure. |
I have built HK2 with this PR and internal Jersey tests (not TCK) passed with this HK2 change. |
Thanks @jansupol for the extra testing! |
This changes HK2 injection order to match that required by TCK.
It also changes behaviour when encountering static injection to ignore it rather than throwing an error as that prevents the TCK from running. With this change HK2 now passes the DI TCK, a runner for which is now included in the test modules.