use of org.mapstruct.ap.test.builtin.bean.StringListProperty in project mapstruct by mapstruct.
the class BuiltInTest method shouldApplyBuiltInOnJAXBElementList.
@ProcessorTest
@WithClasses({ JaxbListMapper.class, JaxbElementListProperty.class })
@WithJavaxJaxb
@IssueKey("141")
public void shouldApplyBuiltInOnJAXBElementList() {
JaxbElementListProperty source = new JaxbElementListProperty();
source.setProp(createJaxbList("TEST2"));
source.publicProp = createJaxbList("PUBLIC TEST2");
StringListProperty target = JaxbListMapper.INSTANCE.map(source);
assertThat(target).isNotNull();
assertThat(target.getProp().get(0)).isEqualTo("TEST2");
assertThat(target.publicProp.get(0)).isEqualTo("PUBLIC TEST2");
}
Aggregations