Package org.mapstruct.ap.test.builtin.bean

Examples of org.mapstruct.ap.test.builtin.bean.JaxbElementListProperty


    @Test
    @WithClasses({ JaxbElementListProperty.class, StringListProperty.class, JaxbListMapper.class })
    public void shouldApplyBuiltInOnJAXBElementList() throws ParseException, DatatypeConfigurationException {

        JaxbElementListProperty source = new JaxbElementListProperty();
        source.setProp( createJaxbList( "TEST2" ) );

        StringListProperty target = JaxbListMapper.INSTANCE.map( source );
        assertThat( target ).isNotNull();
        assertThat( target.getProp().get( 0 ) ).isEqualTo( "TEST2" );
    }
View Full Code Here

TOP

Related Classes of org.mapstruct.ap.test.builtin.bean.JaxbElementListProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.