Skip to content

HW2 - gintnvoj - Customer unit tests

Vojtěch Gintner requested to merge gintnvoj/eShop:master into master

Customer class changed to have all methods public

  • Constructor with negative loyalty points is not allowed
  • Adding negative loyalty points is not allowed
  • Set of empty customer address is not allowed
  • Set of empty customer name is not allowed

12 Unit tests added

  • 3 for constructor (Zero, Negative, Positive)
  • 3 for addLoayltyPoint (Zero, Negative, Positive)
  • 3 for setCustomerAddress (Null, NonEmpty, Empty)
  • 3 for setCustomerName (Null, NonEmpty, Empty)

Merge request reports