public static List<Product> loadAllProducts() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
List<Product> products = new ArrayList<Product>();
try {
products.add(new Product("Chair", Integer.valueOf(25), sdf.parse("2013-02-18")));
products.add(new Product("Table", Integer.valueOf(150), sdf.parse("2013-02-15")));
products.add(new Product("Armchair", Integer.valueOf(85), sdf.parse("2013-02-20")));
products.add(new Product("Wardrobe", Integer.valueOf(450), sdf.parse("2013-02-21")));
products.add(new Product("Kitchen table", Integer.valueOf(49), sdf.parse("2013-02-15")));
products.add(new Product("Bookcase", Integer.valueOf(80), sdf.parse("2013-02-17")));
} catch (ParseException ex) {
throw new RuntimeException("Invalid date");
}
return products;
}