items.put("YM3", menuItem("YM3", new BigDecimal("3.99"), 13, "Low cal Yummy Noodles"));
return items;
}
private MenuItem menuItem(String id, BigDecimal cost, int minutesToPrepare, String name) {
MenuItem item = new MenuItem();
item.setId(id);
item.setCost(cost);
item.setMinutesToPrepare(minutesToPrepare);
item.setName(name);
return item;
}