123456789101112131415161718192021222324 |
- import 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
- {
- @Test
- public void getInventoryValueTest() {
- Product leeks = new Product("Leeks", 34, 745);
- Product thyme = new Product("Thyme", 11, 276);
- Inventory myInventory = new Inventory();
- myInventory.setInventory(leeks);
- myInventory.setInventory(thyme);
- Assert.assertEquals(28366, myInventory.getInventoryValue());
- }
- }
|