Answer:
redSweater.addInventory(sweaterShipment);
if (redSweater.getQuantityRemaining() != sweaterShipment + sweaterInventoryBefore) {
System.out.println(" UNIT TEST FAILED: addInventory()");
}
Explanation:
The if statement sets a condition for the unit test. If the condition isn't met then it prints the unit failed statement. Also, the answer above is kinda right but has lots of extra stuff in the code. Remember to have 3 spaces before the unit failed statement, 1 test will pass but the last one won't.