-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHOSTester.java
47 lines (35 loc) · 1.18 KB
/
HOSTester.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
public class HOSTester
{
public static void main(String args[])throws Exception
{
testHosMethods();
}
public static void testHosMethods()
{
try
{
HOS hos=new HOS();
//initially filter should be null
// System.out.println(hos);
hos.loadItemList("ItemList.txt");
//System.out.println(hos);
hos.loadRoomList("RoomList.txt");
//System.out.println(hos);
hos.createNewOrder(111);// 111 is the room number
// System.out.println(hos);
hos.setFilter(Category.MAIN_COURSE);
//System.out.println(hos);
hos.removeFilter();
//System.out.println(hos);
hos.addItemToOrder(hos.getFilteredItemList().get(0));
hos.addItemToOrder(hos.getFilteredItemList().get(0));
hos.addItemToOrder(hos.getFilteredItemList().get(1));
//System.out.println(hos);
hos.removeItemFromOrder(1);
System.out.println(hos);
hos.saveOrder();
}catch(Exception e)
{
}
}
}