Package de.zalando.sprocwrapper.example

Examples of de.zalando.sprocwrapper.example.Order


    @Test
    public void testMonetaryValue() {
        BigDecimal b = new BigDecimal("123.124");
        int i = exampleSProcService.createOrder("order2", new OrderMonetaryAmountImpl(b, "EUR"));

        Order o = exampleSProcService.getOrders(i);

        assertEquals(o.amount.getAmount().compareTo(b), 0);
    }
View Full Code Here


        AddressPojo addr = new AddressPojo();
        addr.setCustomerId(1);
        addr.setStreet("Main Street");
        addr.setNumber("23");

        Order o = new Order("order3", new OrderMonetaryAmountImpl(b, "EUR"), addr);
        o.positions = Arrays.asList(new OrderPosition(new OrderMonetaryAmountImpl(c, "EUR"),
                    new OrderMonetaryAmountImpl(d, "EUR"), addr));

        int i = exampleSProcService.createOrder(o);
View Full Code Here

    @Test
    public void testEmptyOptionalValues() {
        BigDecimal b = new BigDecimal("12.34");
        BigDecimal c = new BigDecimal("45.67");

        Order o = new Order("order4", new OrderMonetaryAmountImpl(b, "EUR"));
        o.positions = Arrays.asList(new OrderPosition(new OrderMonetaryAmountImpl(c, "EUR")));

        int i = exampleSProcService.createOrder(o);

        o = exampleSProcService.getOrders(i);
View Full Code Here

TOP

Related Classes of de.zalando.sprocwrapper.example.Order

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.