Package test.boundary
Class LoginUITest
java.lang.Object
test.boundary.LoginUITest
A test class that tests the functionality of the LoginUI class. It clears the student repository, registers a student,
then attempts to login with the registered credentials.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LoginUITest
public LoginUITest()
-
-
Method Details
-
main
The main function to test the login functionality of the LoginUI class. It clears the student repository, registers a new student with a userID of "FPU001", a name of "Pu Fanyi", and an email of "FPU001@e.ntu.edu.sg". Then it calls the LoginUI login function to test if the login functionality works correctly.- Parameters:
args
- command line arguments- Throws:
PageBackException
- if the user navigates back to the previous pageModelAlreadyExistsException
- if the model to be registered already exists in the repository
-