Skip to content

Support passing in of RecordComponentElements in unit tests #90

@tobiasstamann

Description

@tobiasstamann

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 especially 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions