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

Provide test coverage for @Priority used on a stereotype #282

Closed
manovotn opened this issue Sep 13, 2021 · 0 comments · Fixed by #311
Closed

Provide test coverage for @Priority used on a stereotype #282

manovotn opened this issue Sep 13, 2021 · 0 comments · Fixed by #311
Assignees

Comments

@manovotn
Copy link
Contributor

manovotn commented Sep 13, 2021

Provided jakartaee/cdi#495 gets accepted, we will need test coverage for it.

Namely we need tests that:

  • Use @Stereotype with @Priority to enable interceptor
  • Use @Stereotype with @Priority to enable decorator (Full only!)
  • Use @Stereotype with @Priority to enable alternative
  • Have a @Alternative bean declaring two stereotypes both of which have @Priority and the bean itself doesn't declare @Priority
  • Have a @Alternative bean declaring two stereotypes both of which have @Priority and the bean itself does declare @Priority
  • Transitive stereotype scenario (stereotypes declaring stereotypes) where all stereotypes declare @Priority and assertion that the most specific value is taken
  • ??

EDIT: TCKs should only cover the case of @Stereotype with @Priority used to enable alternatives as that is the main goal of this addition.

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

Successfully merging a pull request may close this issue.

1 participant