(Solved):In Java, write a unit test for addInventory(). Call redSweater.addInventory() with parameter sweaterShipment. Print the shown error if the subsequent quantity is incorrect. Sample output for failed… View Answer…

 

Question

In Java, write a unit test for addInventory(). Call redSweater.addInventory() with parameter sweaterShipment. Print the shown error if the subsequent quantity is incorrect. Sample output for failed unit test given initial quantity is 10 and sweaterShipment is 50.

 

EXPERT ANSWER

  1. public class InventoryTag
  2. {
  3. private int Item_rem;
  4. public InventoryTag()
Scroll to top