-
Notifications
You must be signed in to change notification settings - Fork 0
/
Driver.java
60 lines (55 loc) · 1.47 KB
/
Driver.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
48
49
50
51
52
53
54
55
56
57
58
59
60
import java.util.Scanner;
import src.demo.DemoAdmin;
import src.demo.DemoChef;
import src.demo.DemoCourier;
import src.demo.DemoCustomer;
import src.test.TestAdmin;
import src.test.TestChef;
import src.test.TestCourier;
import src.test.TestCustomer;
public class Driver {
public static void main(String[] args) {
testUsers();
testDemos();
}
public static void testUsers() {
System.out.println("\n\n\nTHIS IS TEST PART\n");
TestAdmin.testAdmin();
TestChef.testChef();
TestCourier.testCourier();
TestCustomer.testCustomer();
}
public static void testDemos() {
System.out.println("\n\n\nTHIS IS DEMO PART\n");
int choice = -1;
Scanner sc = new Scanner(System.in);
while (choice != 5) {
System.out.println("Which one are you going to login as?");
System.out.println("1-> Admin ");
System.out.println("2-> Chef ");
System.out.println("3-> Courier");
System.out.println("4-> Customer");
System.out.println("5-> Exit");
System.out.print("Enter your input: ");
choice = sc.nextInt();
switch (choice) {
case 1:
DemoAdmin.demoAdmin();
break;
case 2:
DemoChef.demoChef();
break;
case 3:
DemoCourier.demoCourier();
break;
case 4:
DemoCustomer.demoCustomer();
break;
case 5:
System.out.println("Thank you for using HoldON!");
break;
default:
}
}
}
}