BakedItemList { public String generateExcludedRecordsReport() { String result = "---------------------------------------\n" + "Excluded Records Report\n" + "---------------------------------------\n\n"; for (int i = 0; i < excludedCount; i++) { result += "*** invalid category *** for line:\n" + excludedRecords[i] + "\n"; } return result; } 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 generateExcludedRecordsReport() throws Exception { BakedItemList b = new BakedItemList(); b.readItemFile("baked_item_data.csv"); String result = "---------------------------------------\n" + "Excluded Records Report\n" + "---------------------------------------\n" + "\n" + "*** invalid category *** for line:\n" + "D,Chips Delight,Chocolate Chip,12,flour,sugar,dark chocolate " + "chips,butter,baking soda,salt\n" + "*** invalid category *** for line:\n" + "R,Weekly Special,Apple,1,0,flour,sugar,apple,cinnamon,butter," + "baking soda,salt\n"; Assert.assertEquals(result, b.generateExcludedRecordsReport()); }