BakedItemList { public void setItemList(BakedItem[] itemListin) { this.itemList = itemListin; } BakedItemList(); String getListName(); void setListName(String listNamein); BakedItem[] getItemList(); void setItemList(BakedItem[] itemListin); int getItemCount(); void setItemCount(int itemCountin); String[] getExcludedRecords(); void setExcludedRecords(String[] excludedRecordsin); int getExcludedCount(); void setExcludedCount(int excludedCountin); static int getListCount(); static void resetListCount(); void readItemFile(String fileName); String generateReport(); String generateReportByClass(); String generateReportByPrice(); String generateReportByFlavor(); String generateExcludedRecordsReport();  }
@Test public void setItemList() throws Exception { BakedItemList b = new BakedItemList(); String[] ingredientsTrim = {"test"}; Cookie c = new Cookie("test", "test", 1, ingredientsTrim); BakedItem[] itemList = {c}; b.setItemList(itemList); Assert.assertEquals(c, b.getItemList()[0]); }