added test data
This commit is contained in:
parent
f824201e4c
commit
7af901fcc9
1 changed files with 20 additions and 5 deletions
|
@ -14,7 +14,7 @@ import java.util.Hashtable;
|
||||||
public class data_test {
|
public class data_test {
|
||||||
public static Dictionary<String, Dictionary> fake_items = new Hashtable<>();
|
public static Dictionary<String, Dictionary> fake_items = new Hashtable<>();
|
||||||
|
|
||||||
static {
|
private static void fill() {
|
||||||
/* Fake items. */
|
/* Fake items. */
|
||||||
Dictionary item_1 = new Hashtable<>();
|
Dictionary item_1 = new Hashtable<>();
|
||||||
item_1.put("Name", "No Discount");
|
item_1.put("Name", "No Discount");
|
||||||
|
@ -22,9 +22,24 @@ public class data_test {
|
||||||
fake_items.put("13f", item_1);
|
fake_items.put("13f", item_1);
|
||||||
|
|
||||||
Dictionary item_2 = new Hashtable<>();
|
Dictionary item_2 = new Hashtable<>();
|
||||||
item_1.put("Name", "With Discount");
|
item_2.put("Name", "a Discount");
|
||||||
item_1.put("Price", 1);
|
item_2.put("Price", 1);
|
||||||
item_1.put("Discount", 0.95);
|
item_2.put("Discount", -2);
|
||||||
fake_items.put("13a", item_1);
|
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("Discount", 95);
|
||||||
|
fake_items.put("13d", item_3);
|
||||||
|
|
||||||
|
Dictionary item_4 = new Hashtable<>();
|
||||||
|
item_4.put("Price", 1);
|
||||||
|
item_4.put("Discount", 0);
|
||||||
|
fake_items.put("1d", item_4);
|
||||||
|
}
|
||||||
|
|
||||||
|
static {
|
||||||
|
fill();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue