Package org.mapstruct.ap.test.selection.jaxb.test2

Examples of org.mapstruct.ap.test.selection.jaxb.test2.OrderShippingDetailsType


        // qname should match for shipping details
        assertThat( target.getShippingDetails().getName() ).isEqualTo(
            org.mapstruct.ap.test.selection.jaxb.test1.ObjectFactory.ORDER_TYPE_SHIPPING_DETAILS_QNAME
        );

        OrderShippingDetailsType shippingDetails = target.getShippingDetails().getValue();

        // qname and value should match (ObjectFactory = test2.ObjectFactory)
        assertThat( shippingDetails.getOrderShippedFrom().getValue() ).isEqualTo( "from" );
        assertThat( shippingDetails.getOrderShippedFrom().getName() ).isEqualTo(
            ObjectFactory.ORDER_SHIPPING_DETAILS_TYPE_ORDER_SHIPPED_FROM_QNAME
        );
        assertThat( shippingDetails.getOrderShippedTo().getValue() ).isEqualTo( "to" );
        assertThat( shippingDetails.getOrderShippedTo().getName() ).isEqualTo(
            ObjectFactory.ORDER_SHIPPING_DETAILS_TYPE_ORDER_SHIPPED_TO_QNAME
        );
    }
View Full Code Here

TOP

Related Classes of org.mapstruct.ap.test.selection.jaxb.test2.OrderShippingDetailsType

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.