use of org.mapstruct.ap.test.collection.adder.source.Source2 in project mapstruct by mapstruct.
the class AdderTest method testMissingImport.
@IssueKey("310")
@ProcessorTest
public void testMissingImport() {
generatedSource.addComparisonToFixtureFor(Source2Target2Mapper.class);
Source2 source = new Source2();
source.setAttributes(Arrays.asList(new Foo()));
Target2 target = Source2Target2Mapper.INSTANCE.toTarget(source);
assertThat(target).isNotNull();
assertThat(target.getAttributes().size()).isEqualTo(1);
}
Aggregations