Examples of deposit()


Examples of Banking.Account.deposit()

        // resolve the object reference
        String accNum = "0234.234432.50L";
        Account account = AccountHelper.narrow(namingCtx.resolve_str(accNum));
        System.out.println("Obtained a handle on server object: " + account);
       
        account.deposit(100);
        System.out.println("yeeeee: " + account.balance());
  }
       
}
View Full Code Here

Examples of Banking.CurrentAccount.deposit()

        CurrentAccount currentAccount = bank.createCurrentAccount(accNum, 123);
       
        int i = currentAccount.loanLimit();
        System.out.println("loanlimit: " + i);
        System.out.print(currentAccount.accountNumber());
        currentAccount.deposit(100);
       
        bank.payInterest();

        System.out.print(currentAccount.balance());
View Full Code Here

Examples of Banking.SavingsAccount.deposit()

  }

  @Test
  public void payInterest() throws BankException {
    SavingsAccount firstAccount = bank.createSavingsAccount(accountNumberOne, interestRate*2);
    firstAccount.deposit(depositAmount);
   
    SavingsAccount secondAccount = bank.createSavingsAccount(accountNumberTwo, interestRate);
    secondAccount.deposit(depositAmount*2);
   
    bank.payInterest();
 
View Full Code Here

Examples of Banking.SavingsAccount.deposit()

  public void payInterest() throws BankException {
    SavingsAccount firstAccount = bank.createSavingsAccount(accountNumberOne, interestRate*2);
    firstAccount.deposit(depositAmount);
   
    SavingsAccount secondAccount = bank.createSavingsAccount(accountNumberTwo, interestRate);
    secondAccount.deposit(depositAmount*2);
   
    bank.payInterest();
    assertEquals((int)(depositAmount*(1+(interestRate*2))), firstAccount.balance());
    assertEquals((int)(depositAmount*2*(1+interestRate)), secondAccount.balance());
  }
View Full Code Here

Examples of com.greatmancode.craftconomy3.account.Account.deposit()

      return new EconomyResponse(0, getBalance(playerName, worldName), ResponseType.FAILURE, "Cannot desposit negative funds");
    }

    Account account = Common.getInstance().getAccountManager().getAccount(playerName);

    double balance = account.deposit(amount, worldName, Common.getInstance().getCurrencyManager().getDefaultCurrency().getName(), Cause.VAULT, null);
    return new EconomyResponse(amount, balance, ResponseType.SUCCESS, null);
  }

  @Override
  public boolean createPlayerAccount(String playerName, String worldName) {
View Full Code Here

Examples of com.sun.ebank.ejb.tx.TxController.deposit()

        }
      } else
        operationString = messages.getString("DepositedString");
        prepString = messages.getString("ToString");
        try {
          txctl.deposit(amount, "ATM Deposit", accountId);
        } catch (RemoteException e) {
        } catch (IllegalArgumentException e) {
        } catch (AccountNotFoundException e) {
        } catch (IllegalAccountTypeException e) {
        }
View Full Code Here

Examples of com.sun.ebank.ejb.tx.TxController.deposit()

        }
      } else
        operationString = messages.getString("DepositedString");
        prepString = messages.getString("ToString");
        try {
          txctl.deposit(amount, "ATM Deposit", accountId);
        } catch (RemoteException e) {
          Debug.print(message);
          return e.getMessage();
        } catch (InvalidParameterException e) {
          // Not possible
View Full Code Here

Examples of corba.common.Account.deposit()

        // Test the method Bank.create_account()
        System.out.println("Creating account called \"Account1\"");
        Account account1 = bank.create_account("Account1");
        System.out.println("Depositing 100.00 into account \"Account1\"");
        account1.deposit(100.00f);
        System.out.println("Current balance of \"Account1\" is " + account1.get_balance());
        System.out.println();

        // Test the method Bank.create_epr_account()
        System.out.println("Creating account called \"Account2\"");
View Full Code Here

Examples of corba.common.Account.deposit()

        // Test the method Bank.create_epr_account()
        System.out.println("Creating account called \"Account2\"");
        org.omg.CORBA.Object account2Obj = bank.create_epr_account("Account2");
        Account account2 = AccountHelper.narrow(account2Obj);
        System.out.println("Depositing 5.00 into account \"Account2\"");
        account2.deposit(5.00f);
        System.out.println("Current balance of \"Account2\" is " + account2.get_balance());
        System.out.println();
       
        // Create two more accounts to use with the getAccount calls
        Account acc3 = bank.create_account("Account3");
View Full Code Here

Examples of corba.common.Account.deposit()

        System.out.println("Current balance of \"Account2\" is " + account2.get_balance());
        System.out.println();
       
        // Create two more accounts to use with the getAccount calls
        Account acc3 = bank.create_account("Account3");
        acc3.deposit(200.00f);
        Account acc4 = bank.create_account("Account4");
        acc4.deposit(400.00f);

        // Test the method Bank.get_account()
        System.out.println("Retrieving account called \"Account3\"");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.