updated testing data
This commit is contained in:
parent
95ac6ebee3
commit
5290c8fc35
1 changed files with 17 additions and 4 deletions
|
@ -18,28 +18,41 @@ public class data_test {
|
|||
/* Fake items. */
|
||||
Dictionary item_1 = new Hashtable<>();
|
||||
item_1.put("Name", "No Discount");
|
||||
item_1.put("Price", 1);
|
||||
item_1.put("Price", (double) 234);
|
||||
fake_items.put("13f", item_1);
|
||||
|
||||
Dictionary item_2 = new Hashtable<>();
|
||||
item_2.put("Name", "a Discount");
|
||||
item_2.put("Price", 1);
|
||||
item_2.put("Price", (double) 15);
|
||||
item_2.put("Discount", -2);
|
||||
item_2.put("Tax", 3);
|
||||
fake_items.put("13a", item_2);
|
||||
|
||||
Dictionary item_3 = new Hashtable<>();
|
||||
item_3.put("Name", "as Discount");
|
||||
item_3.put("Price", 1);
|
||||
item_3.put("Price", (double) 104);
|
||||
item_3.put("Discount", 95);
|
||||
fake_items.put("13d", item_3);
|
||||
|
||||
Dictionary item_4 = new Hashtable<>();
|
||||
item_4.put("Price", 1);
|
||||
item_4.put("Price", (double) 144);
|
||||
item_4.put("Discount", 0);
|
||||
fake_items.put("1d", item_4);
|
||||
}
|
||||
|
||||
private static Dictionary<String, String> fake_details = new Hashtable<>();
|
||||
|
||||
public static Dictionary<String, String> read_properties() {
|
||||
/* Spam details. */
|
||||
|
||||
fake_details.put("Name", "Contoso");
|
||||
fake_details.put("Address", "1 Infinite Loop Cupertino CA 95014 United States");
|
||||
fake_details.put("Contact Number", "1 (800) MYAPPLE");
|
||||
fake_details.put("URL", "http://apple.com/");
|
||||
|
||||
return fake_details;
|
||||
};
|
||||
|
||||
static {
|
||||
fill();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue