Package tst

Class AccountTest

java.lang.Object
tst.AccountTest

public class AccountTest extends Object
This class is to test if the methods in Account work properly The methods with returns in Accounts are canDeposit, CanWithdraw, changeBalance and toString, . The changeBalance contains canDeposit and CanWithdraw
  • Constructor Details

    • AccountTest

      public AccountTest()
  • Method Details

    • setUp

      public void setUp()
    • tearDown

      public void tearDown()
    • testChangeBalanceNegativeInfinity

      public void testChangeBalanceNegativeInfinity()
      test the changeBalance function in Account to see if withdraw is to large, will it fail
    • testChangeBalanceZero

      public void testChangeBalanceZero()
      test the changeBalance function in Account to see if withdraw is nothing, will it pass
    • testChangeBalanceDecimalValuesPass

      public void testChangeBalanceDecimalValuesPass()
      test the changeBalance function in Account to see if withdraw of a decimal valued number with sufficient funds, will pass
    • testChangeBalanceDecimalValuesFail

      public void testChangeBalanceDecimalValuesFail()
      test the changeBalance function in Account to see if withdraw of a decimal valued number without sufficient funds, will fail
    • testChangeBalanceWholeValuePass

      public void testChangeBalanceWholeValuePass()
      test the changeBalance function in Account to see if withdraw of a whole number with sufficient funds, will pass
    • testChangeBalanceWholeValueFail

      public void testChangeBalanceWholeValueFail()
      test the changeBalance function in Account to see if withdraw of a whole number without sufficient funds, will fail
    • testChangeBalanceDeposit

      public void testChangeBalanceDeposit()
      test the changeBalance function in Account to see if deposits will pass
    • testToString

      public void testToString()
      test the toString function in Account to see if the String it returns is correct