Package org.foo

Examples of org.foo.OldCustomer


        assertNotNull(context);

        TypeConverter tc = context.getTypeConverterRegistry().lookup(OldCustomer.class, NewCustomer.class);
        assertNotNull("Should have registered Dozer type converters", tc);

        OldCustomer old = new OldCustomer();
        old.setId(123);
        old.setName("Donald Duck");
        old.setStreet("Duckstreet 13");
        old.setZip("90210");

        String out = template.requestBody("direct:start", old, String.class);
        assertEquals("The new customer Donald Duck lives at Duckstreet 13 zip 90210", out);
    }
View Full Code Here

TOP

Related Classes of org.foo.OldCustomer

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.