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