Package tst

Class CreditTest

java.lang.Object
tst.CreditTest

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

    • CreditTest

      public CreditTest()
  • Method Details

    • setup

      public void setup()
    • tearDown

      public void tearDown()
    • testChangeBalanceNegativeInfinity

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

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

      public void testChangeBalanceDecimalValuesPass()
      test the changeBalance function in Credit to see if withdraw of a decimal valued number with a diffrence of balance and amount is less than or equal to max, will pass
    • testChangeBalanceDecimalValuesFail

      public void testChangeBalanceDecimalValuesFail()
      test the changeBalance function in Credit to see if withdraw of a decimal valued number with a diffrence of balance and amount is greater than max, will fail
    • testChangeBalanceWholeValuesPass

      public void testChangeBalanceWholeValuesPass()
      test the changeBalance function in Credit to see if withdraw of a whole valued number with a diffrence of balance and amount is less than or equal to max, will pass
    • testChangeBalanceWholeValuesFail

      public void testChangeBalanceWholeValuesFail()
      test the changeBalance function in Credit to see if withdraw of a whole valued number with a diffrence of balance and amount is greater than max, will fail
    • testChangeBalanceDecimalValuePayOffCreditDebtPass

      public void testChangeBalanceDecimalValuePayOffCreditDebtPass()
      test the changeBalance function in Credit to see if paying off debt for a decimal valued amount that is less than or equal to balance, will pass
    • testChangeBalanceDecimalValuePayOffCreditDebtFail

      public void testChangeBalanceDecimalValuePayOffCreditDebtFail()
      test the changeBalance function in Credit to see if paying off debt for a decimal valued amount that is greater than balance, will fail
    • testChangeBalanceWholeValuePayOffCreditDebtPass

      public void testChangeBalanceWholeValuePayOffCreditDebtPass()
      test the changeBalance function in Credit to see if paying off debt for a whole valued amount that is less than or equal to balance, will pass
    • testChangeBalanceWholeValuePayOffCreditDebtFail

      public void testChangeBalanceWholeValuePayOffCreditDebtFail()
      test the changeBalance function in Credit to see if paying off debt with a whole valued amount that is greater than balance, will fail
    • testWithdrawFalse

      public void testWithdrawFalse()
    • testWithdrawTrue

      public void testWithdrawTrue()