Skip to content

HW2 - bilekpe5

Petr Bílek requested to merge bilekpe5/eShop:master into master

ItemStock.java

public modifier added:

  • constructor
  • IncreaseItemCount
  • decreaseItemCount
  • getCount
  • getItem

constructor:

  • null refItem -> IllegalArgumentException thrown

IncreaseItemCount:

  • negative x -> IllegalArgumentException thrown

decreaseItemCount:

  • negative x -> IllegalArgumentException thrown

Storage.java

constructor Storage(HashMap<Integer, ItemStock> stock):

  • null stock -> IllegalArgumentException thrown

insertItems:

  • null item -> IllegalArgumentException thrown

Merge request reports