Skip to content

Add 2 unit tests for Storage

Tomáš Roun requested to merge rountoma/eShop:master into master

The tests target removeItems() and insertItems() with negative count. In my opinion in case of a negative count, nothing should happen to the stock or maybe an Exception could be thrown. What happens currently is that e.g. insertItems(item, -1) decreases the number of items. The tests are annotated with @Ignore since with the current implementation they would be failing.

Merge request reports