Examples of AddressPojo


Examples of de.zalando.sprocwrapper.example.AddressPojo

        exampleSProcService.useIntegerListParam(Lists.newArrayList(1, 2));
    }

    @Test
    public void testCreateAddress() {
        final AddressPojo a = getNewTestAddress();

        final AddressPojo b = exampleSProcService.createAddress(a);
        assertNotNull(b);
        assertNotNull(b.id);

        final AddressPojo c = exampleSProcService.createAddress(a);
        assertNotNull(c);
        assertNotNull(c.id);
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.AddressPojo

        assertNotNull(c.id);
    }

    @Test
    public void testGetAddress() {
        final AddressPojo a = getNewTestAddress();

        final AddressPojo b = exampleSProcService.createAddress(a);

        final AddressPojo c = new AddressPojo();
        c.id = b.getId();

        final AddressPojo l = exampleSProcService.getAddress(c);

        assertEquals(l.customerId, a.customerId);
        assertEquals(l.number, a.number);
        assertEquals(l.street, a.street);
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.AddressPojo

    }

    private static int addresscount = 1;

    private AddressPojo getNewTestAddress() {
        final AddressPojo a = new AddressPojo();
        a.customerId = addresscount++;
        a.street = "Auf Beverau";
        a.number = "11";
        return a;
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.AddressPojo

    }

    @Test
    public void testGetAddressSql() {

        final AddressPojo a = getNewTestAddress();

        final AddressPojo b = exampleSProcService.createAddress(a);

        final AddressPojo c = new AddressPojo();
        c.id = b.getId();

        final AddressPojo l = exampleSProcService.getAddress(c);
        assertEquals(l.customerId, a.customerId);
        assertEquals(l.number, a.number);
        assertEquals(l.street, a.street);
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.AddressPojo

    public void testMonetaryValueInsideOrder() {
        BigDecimal b = new BigDecimal("12.34");
        BigDecimal c = new BigDecimal("45.67");
        BigDecimal d = new BigDecimal("89.12");

        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));
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.