Class UserTest

java.lang.Object
test.model.user.UserTest

public class UserTest extends Object
The UserTest class contains JUnit tests for the User class and its subclasses: Student, Coordinator, and Supervisor.
  • Constructor Details

    • UserTest

      public UserTest()
  • Method Details

    • testUserID

      public void testUserID(User user, String id)
      Test that the user ID matches the provided ID and is not "hahaha".
      Parameters:
      user - the User object being tested
      id - the expected user ID
    • testUserPassword

      public void testUserPassword(User user, String password)
      Test that the user password matches the provided password.
      Parameters:
      user - the User object being tested
      password - the expected user password
    • testUserName

      public void testUserName(User user, String name)
      Test that the username matches the provided name and is not "hahaha".
      Parameters:
      user - the User object being tested
      name - the expected username
    • testUserEmail

      public void testUserEmail(User user, String email)
      Test that the user email matches the provided email and is not "hahaha".
      Parameters:
      user - the User object being tested
      email - the expected user email
    • testStudent

      @Test @DisplayName("Test Student") public void testStudent()
      Test the Student subclass of the User class.
    • testCoordinator

      @Test @DisplayName("Test Coordinator") public void testCoordinator()
      Test the Coordinator subclass of the User class.
    • testSupervisor

      @Test @DisplayName("Test Supervisor") public void testSupervisor()
      Test the Supervisor subclass of the User class.