Package Banking

Examples of Banking.SavingsAccount.balance()


    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());
  }
 
  // helpers
 
  private static class CompareAccounts {
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.