Package Customer

Examples of Customer.Customer


public class CustomerRegistryImpl implements CustomerRegistry {
    private Map<String, Customer> customers = new HashMap<String, Customer>();
   
    @Init
    public void init() {
        Customer c1 = new Customer();
        c1.setId("001");
        c1.setName("John Smith");
        customers.put(c1.getId(), c1);
       
        Customer c2 = new Customer();
        c2.setId("002");
        c2.setName("Jane Smith");
        customers.put(c2.getId(), c2);
    }
View Full Code Here


    }

    @Test
    public void testCustomer() {
        CustomerRegistry customerRegistry = node.getService(CustomerRegistry.class, "CustomerRegistryComponent");
        Customer customer = customerRegistry.find("001");
        Assert.assertEquals(customer.getName(), "John Smith");
    }
View Full Code Here

TOP

Related Classes of Customer.Customer

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.