Coverage Report - org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableAccountImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ImmutableAccountImpl
0%
0/11
N/A
1
 
 1  
 /*
 2  
  * Created on Aug 12, 2007 by wyatt
 3  
  */
 4  
 package org.homeunix.thecave.buddi.plugin.api.model.impl;
 5  
 
 6  
 import java.util.Date;
 7  
 
 8  
 import org.homeunix.thecave.buddi.model.Account;
 9  
 import org.homeunix.thecave.buddi.plugin.api.model.ImmutableAccount;
 10  
 import org.homeunix.thecave.buddi.plugin.api.model.ImmutableAccountType;
 11  
 
 12  
 public class ImmutableAccountImpl extends ImmutableSourceImpl implements ImmutableAccount {
 13  
         
 14  
         public ImmutableAccountImpl(Account account) {
 15  0
                 super(account);
 16  0
         }
 17  
         
 18  
         public long getStartingBalance() {
 19  0
                 return getAccount().getStartingBalance();
 20  
         }
 21  
         public long getBalance() {
 22  0
                 return getAccount().getBalance();
 23  
         }
 24  
         public ImmutableAccountType getAccountType() {
 25  0
                 return new MutableAccountTypeImpl(getAccount().getAccountType());
 26  
         }
 27  
         public Account getAccount(){
 28  0
                 return (Account) getRaw(); 
 29  
         }
 30  
         public Date getStartDate() {
 31  0
                 return getAccount().getStartDate();
 32  
         }
 33  
         
 34  
         @Override
 35  
         public String toString() {
 36  0
                 return getFullName();
 37  
         }
 38  
         
 39  
         public long getBalance(Date d) {
 40  0
                 return getAccount().getBalance(d);
 41  
         }
 42  
         
 43  
         public long getOverdraftCreditLimit() {
 44  0
                 return getAccount().getOverdraftCreditLimit();
 45  
         }
 46  
         
 47  
         public long getInterestRate() {
 48  0
                 return getAccount().getInterestRate();
 49  
         }
 50  
 }