Package bigbank.account.services.accountdata

Examples of bigbank.account.services.accountdata.AccountDataService


//        doit("Client1b2b3b4a");
//        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());
View Full Code Here


    public void testClient1b2b3b4b() throws RemoteException  {
        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);
        assertEquals(summary2.getBalance(), 2000.f);
    }
View Full Code Here

    public void testClient1b2b3b4b() throws RemoteException  {
        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);
        assertEquals(summary2.getBalance(), 2000.f);
    }
View Full Code Here

TOP

Related Classes of bigbank.account.services.accountdata.AccountDataService

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.