use of org.mapstruct.ap.test.imports.innerclasses.SourceWithInnerClass in project mapstruct by mapstruct.
the class InnerClassesImportsTest method mapperRequiresInnerClassImports.
@ProcessorTest
@IssueKey("412")
public void mapperRequiresInnerClassImports() {
SourceWithInnerClass source = new SourceWithInnerClass();
source.setInnerClassMember(new SourceInnerClass(412));
TargetWithInnerClass target = InnerClassMapper.INSTANCE.sourceToTarget(source);
assertThat(target).isNotNull();
assertThat(target.getInnerClassMember().getValue()).isEqualTo(412);
generatedSource.addComparisonToFixtureFor(InnerClassMapper.class);
}
Aggregations