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

Support passing in of RecordComponentElements in unit tests #90

Open
tobiasstamann opened this issue Apr 9, 2024 · 0 comments
Open

Comments

@tobiasstamann
Copy link
Contributor

Currently passing in of RecordComponentElements in Unit Tests is not possible.

This will be a hard one to implement since annotations on RecordComponentElements will be cloned to Constructor parameter, field and accessor. So we will have 4 Elements with PassIn annotation instead of 1 raising an exception that the PassIn annotation must be unique in the passed in class.

So some kind of additional, enum based target annotation attribute expecially for records components could resolve this issue.
It could have kind the following kind of values: RECORD_COMPONENT, RECORD_COMPONENT_FIELD, RECORD_COMPONENT_CONSTRUCTOR_PARAMETER, RECORD_COMPONENT_ACCESSOR.

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

No branches or pull requests

1 participant