use of org.mapstruct.ap.test.collection.adder.source.SourceWithPets in project mapstruct by mapstruct.
the class AdderTest method useIterationNameFromSource.
@IssueKey("1478")
@ProcessorTest
public void useIterationNameFromSource() {
generatedSource.addComparisonToFixtureFor(SourceTargetMapperWithDifferentProperties.class);
SourceWithPets source = new SourceWithPets();
source.setPets(Arrays.asList("dog", "cat"));
TargetWithAnimals target = SourceTargetMapperWithDifferentProperties.INSTANCE.map(source);
assertThat(target.getAnimals()).containsExactly("dog", "cat");
}
Aggregations