Search in sources :

Example 1 with TargetBase

use of org.mapstruct.ap.test.bugs._2195.dto.TargetBase in project mapstruct by mapstruct.

the class Issue2195Test method test.

@ProcessorTest
@WithClasses(Issue2195Mapper.class)
public void test() {
    Source source = new Source();
    source.setName("JohnDoe");
    TargetBase target = Issue2195Mapper.INSTANCE.map(source);
    assertThat(target).isInstanceOf(Target.class);
}
Also used : TargetBase(org.mapstruct.ap.test.bugs._2195.dto.TargetBase) Source(org.mapstruct.ap.test.bugs._2195.dto.Source) ProcessorTest(org.mapstruct.ap.testutil.ProcessorTest) WithClasses(org.mapstruct.ap.testutil.WithClasses)

Aggregations

Source (org.mapstruct.ap.test.bugs._2195.dto.Source)1 TargetBase (org.mapstruct.ap.test.bugs._2195.dto.TargetBase)1 ProcessorTest (org.mapstruct.ap.testutil.ProcessorTest)1 WithClasses (org.mapstruct.ap.testutil.WithClasses)1