FileDocCategorySizeDatePackage
GetBalance.javaAPI DocExample804Thu Nov 08 00:22:50 GMT 2001com.ora.rmibook.chapter13.bank.applications.tests

GetBalance

public class GetBalance extends Test

Fields Summary
Constructors Summary
public GetBalance(NameRepository nameRepository)

        super (nameRepository);
    
Methods Summary
protected java.lang.StringdescribeOperation()

        return "get the balance from";
    
protected java.lang.StringperformActualTest(java.lang.String idNumber, Account3 account)

        try {
            account.getBalance(idNumber);
        } catch (RemoteException remoteException) {
            return REMOTE_EXCEPTION_THROWN;
        } catch (LockedAccountException lockedAccountException) {
            return ACCOUNT_WAS_LOCKED;
        }
        return SUCCESS;