-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestAdmin.java
More file actions
19 lines (13 loc) · 795 Bytes
/
Copy pathTestAdmin.java
File metadata and controls
19 lines (13 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class TestAdmin
{
public static void main(String[] args) {
Account test = new Account("testUser", "testPass");
System.out.printf("This username is %s, the password is %s, and are they admin? %b%n", test.getUsername(), test.getPassword(), test.checkAdmin());
test.changeUsername("newUser");
test.changePassword("newPass");
test.admin();
System.out.printf("This username is %s, the password is %s, and are they admin? %b%n", test.getUsername(), test.getPassword(), test.checkAdmin());
System.out.printf("I will input password for the password. Validation: %b%n", test.checkCredential("password"));
System.out.printf("I will input newPass for the password. Validation: %b%n", test.checkCredential("newPass"));
}
}