Package junit

Class TestAccountImplValid4JBestPractice

java.lang.Object
junit.TestAccountImplValid4JBestPractice

public class TestAccountImplValid4JBestPractice
extends java.lang.Object
Checks the postconditions of the Account methods
Author:
Horst Lichter, Jochen Ludewig, Software Engineering – Grundlagen, Menschen, Prozesse, Techniken, dpunkt.verlag, (c) 2023
  • Constructor Summary

    Constructors
    Constructor Description
    TestAccountImplValid4JBestPractice()  
  • Method Summary

    Modifier and Type Method Description
    void testAccountCreation()
    Checks the constructor
    void testDeposit()
    Checks the deposit method
    void testDepositWithdraw()
    Checks the deposit and then withdraw of the same amount
    void testSetHolder()
    Checks the setHolder method
    void testWithdraw()
    Checks the withdraw method
    void testWithdrawDeposit()
    Checks the withdraw and then deposit of the same amount

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestAccountImplValid4JBestPractice

      public TestAccountImplValid4JBestPractice()
  • Method Details

    • testAccountCreation

      public void testAccountCreation()
      Checks the constructor
    • testDeposit

      public void testDeposit()
      Checks the deposit method
    • testWithdraw

      public void testWithdraw()
      Checks the withdraw method
    • testSetHolder

      public void testSetHolder()
      Checks the setHolder method
    • testDepositWithdraw

      public void testDepositWithdraw()
      Checks the deposit and then withdraw of the same amount
    • testWithdrawDeposit

      public void testWithdrawDeposit()
      Checks the withdraw and then deposit of the same amount