From 12a15ba386a718c7c339473b38fabe7b898a1382 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sun, 25 Feb 2024 13:04:40 +0800 Subject: [PATCH] add sample items --- .../tech/iBeans/POSware/Lite/data_test.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/java/tech/iBeans/POSware/Lite/data_test.java b/src/main/java/tech/iBeans/POSware/Lite/data_test.java index 56664a7..512c773 100644 --- a/src/main/java/tech/iBeans/POSware/Lite/data_test.java +++ b/src/main/java/tech/iBeans/POSware/Lite/data_test.java @@ -4,10 +4,27 @@ */ package tech.iBeans.POSware.Lite; +import java.util.Dictionary; +import java.util.Hashtable; + /** * * @author eleven */ public class data_test { + public static Dictionary fake_items = new Hashtable<>(); + static { + /* Fake items. */ + Dictionary item_1 = new Hashtable<>(); + item_1.put("Name", "No Discount"); + item_1.put("Price", 1); + fake_items.put("13f", item_1); + + Dictionary item_2 = new Hashtable<>(); + item_1.put("Name", "With Discount"); + item_1.put("Price", 1); + item_1.put("Discount", 0.95); + fake_items.put("13a", item_1); + }; }