Examples of loanLimit()


Examples of Banking.CurrentAccount.loanLimit()

  @Test
  public void createCurrentAccount() throws BankException {
    CurrentAccount account = bank.createCurrentAccount(accountNumberOne, loanLimit);
    assertNotNull(account);
    assertEquals(accountNumberOne, account.accountNumber());
    assertEquals(loanLimit, account.loanLimit());
   
    Account foundAccount = bank.findAccount(accountNumberOne);
    assertEquals(true, CompareAccounts.compareAccounts(account, foundAccount));
  }
View Full Code Here

Examples of Banking.CurrentAccount.loanLimit()

        System.out.println("Obtained a handle on server object: " + bank);
       
        String accNum = "0234.234432.50L";
        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();
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.