Package com.bigbank.account

Examples of com.bigbank.account.CustomerProfileData


    }

    private void createAccount(HttpServletRequest pReq, HttpServletResponse pResp, AccountService accountServices) throws ServletException {
        try {
            CustomerProfileData customerProfileData = AccountFactory.INSTANCE.createCustomerProfileData();
            customerProfileData.setFirstName(pReq.getParameter("firstName"));
            customerProfileData.setLastName(pReq.getParameter("lastName"));
            customerProfileData.setAddress(pReq.getParameter("address"));
            customerProfileData.setEmail(pReq.getParameter("email"));
            customerProfileData.setLoginID(pReq.getParameter("loginID"));
            customerProfileData.setPassword(pReq.getParameter("password"));

            CustomerProfileData resp = accountServices.createAccount(customerProfileData, "savings".equals(pReq.getParameter("savings")), "checkings"
                    .equals(pReq.getParameter("checkings")));
            LoginServlet.login(resp.getLoginID(), resp.getPassword());

        } catch (IOException e) {
            throw new ServletException(e);
        }
View Full Code Here


        return null;
    }

    public CustomerProfileData createAccount(CustomerProfileData customerProfile, boolean createSavings, boolean createCheckings)
            throws RemoteException {
        CustomerProfileData data = AccountFactory.INSTANCE.createCustomerProfileData();
        data.setLoginID(customerProfile.getLoginID());
        data.setAddress(customerProfile.getAddress());
        data.setEmail(customerProfile.getEmail());
        data.setFirstName(customerProfile.getFirstName());
        data.setId(customerProfile.getId());
        data.setLastName(customerProfile.getLastName());
        data.setPassword(customerProfile.getPassword());
        return data;
    }
View Full Code Here

//        doit("Client1b2b3b4b");
    }

    private void doit(String compName) throws RemoteException {
        AccountDataService client = domain.getService(AccountDataService.class, compName);
        CustomerProfileData dataIn = AccountFactory.INSTANCE.createCustomerProfileData();
        dataIn.setAddress("home");
        dataIn.setEmail("petra@home");
        dataIn.setFirstName("petra");
        dataIn.setId(1);
        dataIn.setLastName("A");
        dataIn.setLoginID("petra");
        dataIn.setPassword("ant");
       
        CustomerProfileData dataOut = client.createAccount(dataIn , false, false);
       
        assertEquals(dataIn.getAddress(), dataOut.getAddress());
        assertEquals(dataIn.getEmail(), dataOut.getEmail());
        assertEquals(dataIn.getFirstName(), dataOut.getFirstName());
        assertEquals(dataIn.getId(), dataOut.getId());
        assertEquals(dataIn.getLastName(), dataOut.getLastName());
        assertEquals(dataIn.getLoginID(), dataOut.getLoginID());
        assertEquals(dataIn.getPassword(), dataOut.getPassword());
    }
View Full Code Here

        doit("Client1b2b3b4b");
    }

    private void doit(String compName) throws RemoteException {
        AccountDataService client = domain.getService(AccountDataService.class, compName);
        CustomerProfileData dataIn = AccountFactory.INSTANCE.createCustomerProfileData();
        dataIn.setAddress("home");
        dataIn.setEmail("petra@home");
        dataIn.setFirstName("petra");
        dataIn.setId(1);
        dataIn.setLastName("A");
        dataIn.setLoginID("petra");
        dataIn.setPassword("ant");
       
        CustomerProfileData dataOut = client.createAccount(dataIn , false, false);
       
        assertEquals(dataIn.getAddress(), dataOut.getAddress());
        assertEquals(dataIn.getEmail(), dataOut.getEmail());
        assertEquals(dataIn.getFirstName(), dataOut.getFirstName());
        assertEquals(dataIn.getId(), dataOut.getId());
        assertEquals(dataIn.getLastName(), dataOut.getLastName());
        assertEquals(dataIn.getLoginID(), dataOut.getLoginID());
        assertEquals(dataIn.getPassword(), dataOut.getPassword());
       
        AccountReport report = client.getAccountReport(12345);
        AccountSummary summary1 = (AccountSummary)report.getAccountSummaries().get(0);
        assertEquals(summary1.getAccountType(), "checking");
        AccountSummary summary2 = (AccountSummary)report.getAccountSummaries().get(1);
View Full Code Here

        return report;
    }

    public CustomerProfileData createAccount(CustomerProfileData customerProfile, boolean createSavings, boolean createCheckings)
            throws RemoteException {
        CustomerProfileData data = AccountFactory.INSTANCE.createCustomerProfileData();
        data.setLoginID(customerProfile.getLoginID());
        data.setAddress(customerProfile.getAddress());
        data.setEmail(customerProfile.getEmail());
        data.setFirstName(customerProfile.getFirstName());
        data.setId(customerProfile.getId());
        data.setLastName(customerProfile.getLastName());
        data.setPassword(customerProfile.getPassword());
        return data;
    }
View Full Code Here

        return report;
    }

    public CustomerProfileData createAccount(CustomerProfileData customerProfile, boolean createSavings, boolean createCheckings)
            {
        CustomerProfileData data = AccountFactory.INSTANCE.createCustomerProfileData();
        data.setLoginID(customerProfile.getLoginID());
        data.setAddress(customerProfile.getAddress());
        data.setEmail(customerProfile.getEmail());
        data.setFirstName(customerProfile.getFirstName());
        data.setId(customerProfile.getId());
        data.setLastName(customerProfile.getLastName());
        data.setPassword(customerProfile.getPassword());
        return data;
    }
View Full Code Here

        doit("Client1b2b3b4b");
    }

    private void doit(String compName) throws RemoteException {
        AccountDataService client = domain.getService(AccountDataService.class, compName);
        CustomerProfileData dataIn = AccountFactory.INSTANCE.createCustomerProfileData();
        dataIn.setAddress("home");
        dataIn.setEmail("petra@home");
        dataIn.setFirstName("petra");
        dataIn.setId(1);
        dataIn.setLastName("A");
        dataIn.setLoginID("petra");
        dataIn.setPassword("ant");
       
        CustomerProfileData dataOut = client.createAccount(dataIn , false, false);
       
        assertEquals(dataIn.getAddress(), dataOut.getAddress());
        assertEquals(dataIn.getEmail(), dataOut.getEmail());
        assertEquals(dataIn.getFirstName(), dataOut.getFirstName());
        assertEquals(dataIn.getId(), dataOut.getId());
        assertEquals(dataIn.getLastName(), dataOut.getLastName());
        assertEquals(dataIn.getLoginID(), dataOut.getLoginID());
        assertEquals(dataIn.getPassword(), dataOut.getPassword());
       
        AccountReport report = client.getAccountReport(12345);
        AccountSummary summary1 = (AccountSummary)report.getAccountSummaries().get(0);
        assertEquals(summary1.getAccountType(), "checking");
        AccountSummary summary2 = (AccountSummary)report.getAccountSummaries().get(1);
View Full Code Here

TOP

Related Classes of com.bigbank.account.CustomerProfileData

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.