Search in sources :

Example 1 with TargetInnerInnerClass

use of org.mapstruct.ap.test.imports.innerclasses.TargetWithInnerClass.TargetInnerClass.TargetInnerInnerClass 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);
}
Also used : SourceInnerClass(org.mapstruct.ap.test.imports.innerclasses.SourceWithInnerClass.SourceInnerClass) TargetInnerInnerClass(org.mapstruct.ap.test.imports.innerclasses.TargetWithInnerClass.TargetInnerClass.TargetInnerInnerClass) IssueKey(org.mapstruct.ap.testutil.IssueKey) ProcessorTest(org.mapstruct.ap.testutil.ProcessorTest)

Aggregations

SourceInnerClass (org.mapstruct.ap.test.imports.innerclasses.SourceWithInnerClass.SourceInnerClass)1 TargetInnerInnerClass (org.mapstruct.ap.test.imports.innerclasses.TargetWithInnerClass.TargetInnerClass.TargetInnerInnerClass)1 IssueKey (org.mapstruct.ap.testutil.IssueKey)1 ProcessorTest (org.mapstruct.ap.testutil.ProcessorTest)1