import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The test class InventoryTest. * * @author (your name) * @version (a version number or a date) */ public class InventoryTest { /** * Default constructor for test class InventoryTest */ public InventoryTest() { } /** * Sets up the test fixture. * * Called before every test case method. */ @Before public void setUp() { } // @Test // public void testGetTotalQuantity(){ // Inventory inventory = new Inventory(); // Product tea = new Product (1,1.99,10); // Product coffee = new Product (9, 3.99, 5) // inventory.add(tea); // inventory.add(coffee); // int actualQuantity = inventory.getTotalQuantity(); // int expectedQuanity = 15; // AssertEquals(expectedQuantity, actualQuantity); // } /** * Tears down the test fixture. * * Called after every test case method. */ @After public void tearDown() { } }