cute icon indicating copy to clipboard operation
cute copied to clipboard

Support passing in of RecordComponentElements in unit tests

Open tobiasstamann opened this issue 4 months ago • 0 comments

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.

tobiasstamann avatar Apr 09 '24 07:04 tobiasstamann