Package org.jboss.soa.esb.services.soapui.orderprocessing

Examples of org.jboss.soa.esb.services.soapui.orderprocessing.LineItem


        ProcessOrderRequest request = new ProcessOrderRequest(order);
        order.setId(123L);
        order.setShipTo("Skeagh Bridge");
        order.setLineItems(lineItems);

        LineItem lineItem;

        lineItem = new LineItem();
        lineItems.add(lineItem);
        lineItem.setId(456L);
        lineItem.setName("item1");
        lineItem.setPrice(10.99f);

        lineItem = new LineItem();
        lineItems.add(lineItem);
        lineItem.setId(890L);
        lineItem.setName("item2");
        lineItem.setPrice(12.11f);

        lineItem = new LineItem();
        lineItems.add(lineItem);
        lineItem.setId(321L);
        lineItem.setName("item3");
        lineItem.setPrice(76.34f);

        params.put("processOrder", request);
        String message = mbean.buildRequest(wsdlFile.toURI().toString(), "processOrder", null, params, properties, null, null);
        assertTrue("Generated SOAP message not as expected. See orderprocessing/expected_01.xml.  Generated message: \n" + message, compareCharStreams(getClass().getResourceAsStream("orderprocessing/expected_01.xml"), new ByteArrayInputStream(message.getBytes())));
    }
View Full Code Here


        ProcessOrderRequest request = new ProcessOrderRequest(order);
        order.setId(123L);
        order.setShipTo("Skeagh Bridge");
        order.setLineItems(lineItems);

        LineItem lineItem;

        lineItem = new LineItem();
        lineItems.add(lineItem);
        lineItem.setId(456L);
        lineItem.setName("item1");
        lineItem.setPrice(10.99f);

        lineItem = new LineItem();
        lineItems.add(lineItem);
        lineItem.setId(890L);
        lineItem.setName("item2");
        lineItem.setPrice(12.11f);

        lineItem = new LineItem();
        lineItems.add(lineItem);
        lineItem.setId(321L);
        lineItem.setName("item3");
        lineItem.setPrice(76.34f);

        params.put("processOrder", request);
        String message = mbean.buildRequest(wsdlFile.toURI().toString(), "processOrder", null, params, properties, null, null);
        assertTrue("Generated SOAP message not as expected. See orderprocessing/expected_01_JBESB-1329.xml.  Generated message: \n" + message, compareCharStreams(getClass().getResourceAsStream("orderprocessing/expected_01_JBESB-1329.xml"), new ByteArrayInputStream(message.getBytes())));
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.services.soapui.orderprocessing.LineItem

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.