Examples of JaxbElementProperty


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

    @Test
    @WithClasses({ JaxbElementProperty.class, StringProperty.class, JaxbMapper.class })
    public void shoulApplyBuiltInOnJAXBElement() throws ParseException, DatatypeConfigurationException {

        JaxbElementProperty source = new JaxbElementProperty();
        source.setProp( createJaxb( "TEST" ) );

        StringProperty target = JaxbMapper.INSTANCE.map( source );
        assertThat( target ).isNotNull();
        assertThat( target.getProp() ).isEqualTo( "TEST" );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.