use of samples.services.xsd.BuyStocksDocument.BuyStocks in project camel by apache.
the class UnmarshalTest method assertBuyStocks.
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());
}
use of samples.services.xsd.BuyStocksDocument.BuyStocks in project camel by apache.
the class MarshalTest method createBuyStocksDocument.
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);
return document;
}
use of samples.services.xsd.BuyStocksDocument.BuyStocks in project camel by apache.
the class XmlBeansConverterTest method assertBuyStocks.
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());
}
use of samples.services.xsd.BuyStocksDocument.BuyStocks in project camel by apache.
the class XmlBeansDslTest method createBuyStocksDocument.
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);
return document;
}
Aggregations