mapstruct / mapstruct/mapstruct

Add unit test for varargs icw @TargetType

Open
#1,562 0 comments 1 reaction 0 assignees View on GitHub
test
Dominant language
Java
Stars
7.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

* `@TargetType` should always be a class. Perhaps this works out of the box. However a test case would be a good idea.
* `@MappingTarget` should work on handwritten method. Add test case to verify this.

see also #1550

Contributor guide

Open the contributing guide

Research direction

Start by reading issue #1550 and the repository's existing tests for @TargetType and @MappingTarget. Add unit coverage for varargs methods, confirming that @TargetType accepts a class and that @MappingTarget works on handwritten methods; the tests should pass and document both behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.