use of org.mapstruct.ap.test.imports.innerclasses.SourceWithInnerClass.SourceInnerClass 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);
}
use of org.mapstruct.ap.test.imports.innerclasses.SourceWithInnerClass.SourceInnerClass in project mapstruct by mapstruct.
the class InnerClassesImportsTest method mapperRequiresInnerInnerClassImports.
@ProcessorTest
@IssueKey("412")
public void mapperRequiresInnerInnerClassImports() {
SourceInnerClass source = new SourceInnerClass();
source.setValue(412);
TargetInnerInnerClass target = InnerClassMapper.INSTANCE.innerSourceToInnerInnerTarget(source);
assertThat(target).isNotNull();
assertThat(target.getValue()).isEqualTo(412);
generatedSource.addComparisonToFixtureFor(InnerClassMapper.class);
}
Aggregations