Package test.boundary

Class LoginUITest

java.lang.Object
test.boundary.LoginUITest

public class LoginUITest extends Object
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 Details

    • LoginUITest

      public LoginUITest()
  • Method Details

    • main

      public static void main(String[] args) throws PageBackException, ModelAlreadyExistsException
      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 page
      ModelAlreadyExistsException - if the model to be registered already exists in the repository