Examples of BuyStocks


Examples of samples.services.xsd.BuyStocksDocument.BuyStocks

        XmlObject result = XmlBeansConverter.toXmlObject(new BytesSource(PAYLOAD.getBytes()), new DefaultExchange(new DefaultCamelContext()));
        assertBuyStocks(result);
    }

    private void assertBuyStocks(Object result) {
        BuyStocks buyStocks = ((BuyStocksDocument) result).getBuyStocks();
        assertEquals(1, buyStocks.getOrderArray().length);
        assertEquals("IBM", buyStocks.getOrderArray(0).getSymbol());
        assertEquals("cmueller", buyStocks.getOrderArray(0).getBuyerID());
        assertEquals(140.34, buyStocks.getOrderArray(0).getPrice(), 0);
        assertEquals(2000, buyStocks.getOrderArray(0).getVolume());
    }
View Full Code Here

Examples of samples.services.xsd.BuyStocksDocument.BuyStocks

        assertTrue(result.contains("</xsd:buyStocks>"));
    }

    private BuyStocksDocument createBuyStocksDocument() {
        BuyStocksDocument document = BuyStocksDocument.Factory.newInstance();
        BuyStocks payload = document.addNewBuyStocks();
        Order order = payload.addNewOrder();
        order.setSymbol("IBM");
        order.setBuyerID("cmueller");
        order.setPrice(140.34);
        order.setVolume(2000);
View Full Code Here

Examples of samples.services.xsd.BuyStocksDocument.BuyStocks

        assertIsInstanceOf(BuyStocksDocument.class, unmarshaledBody);
    }

    private BuyStocksDocument createBuyStocksDocument() {
        BuyStocksDocument document = BuyStocksDocument.Factory.newInstance();
        BuyStocks payload = document.addNewBuyStocks();
        Order order = payload.addNewOrder();
        order.setSymbol("IBM");
        order.setBuyerID("cmueller");
        order.setPrice(140.34);
        order.setVolume(2000);
View Full Code Here

Examples of samples.services.xsd.BuyStocksDocument.BuyStocks

        // make sure all results are checked and right
        assertTrue(latch.await(10, TimeUnit.SECONDS));
    }

    private void assertBuyStocks(Object result) {
        BuyStocks buyStocks = ((BuyStocksDocument) result).getBuyStocks();
        assertEquals(1, buyStocks.getOrderArray().length);
        assertEquals("IBM", buyStocks.getOrderArray(0).getSymbol());
        assertEquals("cmueller", buyStocks.getOrderArray(0).getBuyerID());
        assertEquals(140.34, buyStocks.getOrderArray(0).getPrice(), 0);
        assertEquals(2000, buyStocks.getOrderArray(0).getVolume());
    }
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.