Search in sources :

Example 1 with SubType

use of org.mapstruct.ap.test.selection.jaxb.underscores.SubType in project mapstruct by mapstruct.

the class UnderscoreSelectionTest method selectingUnderscorePropertiesWorks.

@ProcessorTest
public void selectingUnderscorePropertiesWorks() {
    SubType target = UnderscoreMapper.INSTANCE.map(createSource());
    assertThat(target.getInheritedUnderscore().getValue()).isEqualTo("hi");
    assertThat(target.getDeclaredUnderscore().getValue()).isEqualTo("there");
}
Also used : SubType(org.mapstruct.ap.test.selection.jaxb.underscores.SubType) ProcessorTest(org.mapstruct.ap.testutil.ProcessorTest)

Aggregations

SubType (org.mapstruct.ap.test.selection.jaxb.underscores.SubType)1 ProcessorTest (org.mapstruct.ap.testutil.ProcessorTest)1