Question: PLEASE HELP ME FIX THIS MISTAKE IN JAVA Write a unit test for addinventory0. which has an error. Call redSweater. addInventory0 with argument sweaterShipment. Print

 PLEASE HELP ME FIX THIS MISTAKE IN JAVA Write a unittest for addinventory0. which has an error. Call redSweater. addInventory0 with argument

PLEASE HELP ME FIX THIS MISTAKE IN JAVA

Write a unit test for addinventory0. which has an error. Call redSweater. addInventory0 with argument sweaterShipment. Print the shown emor if the subsequent quantity is incorrect. Sample output for failed unit test given initial quantity is 10 and sweater Shipment is 50 : Beginning tests. UNIT TEST FAILED: addinventory() Tests complete. Note: UNIT TEST FAILED is preceded by 3 spaces. Not all tests passed X Inventory is 0 , shipment input is 25. Testing that quantityRemaining was updated to 25. Value differs. See highlights below Your value Expected value X Inventory is 0 , shipment input is 25 . Testing that quantityRemaining was updated to 25 . Value differs. See highlights below. Your value Expected value Testing with sweaterShipment input of 25 . addlnventory updates quantityRemaining. Output differs. See highlights below. Beginaing tests. Youroutput UNIT TEST FAILED: addInvertory()H Tests complete. Expected output Inventory is 25 , shipment input is 5 . Testing that quantityRemaining remains 25 . Value differs. See highlights below. Your value Expected value Testing sweaterShipment input of 5 . addInventory does not update quantityRemaining. Output is nearly correct, but whitespace differs. See highlights below. Your output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!