-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEmployeeDaoTest.java
More file actions
31 lines (23 loc) · 900 Bytes
/
Copy pathEmployeeDaoTest.java
File metadata and controls
31 lines (23 loc) · 900 Bytes
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
import java.io.IOException;
import POS_DAO.Employee_DAO;
/*
* Written by Devin Nemec
* 2016 Software Engineering Final
*/
public class EmployeeDaoTest {
public static void main(String[] args) throws IOException {
Employee_DAO tester1 = new Employee_DAO();
tester1.createEmployee("12345", "stupid", "Fake", "Person");
tester1.createAdmin("67890", "test", "Testie", "McTesterson", "testie.mctesterson@test.edu");
boolean[] testResult = new boolean[3];
testResult = tester1.loginInfo("testuser","testpassword");
if(testResult[0]){System.out.println("Username is correct");}
if(testResult[1]){System.out.println("Password is correct");}
if(testResult[2]){System.out.println("User is an Administrator");}
//tester1.deleteEmployee("12345"); //Come back to this later, WAY too much work right now.
}
}
/*
* Written by Devin Nemec
* 2016 Software Engineering Final
*/