Package test.model.user
Class UserTest
java.lang.Object
test.model.user.UserTest
The UserTest class contains JUnit tests for the User class and its subclasses: Student, Coordinator, and Supervisor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test the Coordinator subclass of the User class.void
Test the Student subclass of the User class.void
Test the Supervisor subclass of the User class.void
testUserEmail
(User user, String email) Test that the user email matches the provided email and is not "hahaha".void
testUserID
(User user, String id) Test that the user ID matches the provided ID and is not "hahaha".void
testUserName
(User user, String name) Test that the username matches the provided name and is not "hahaha".void
testUserPassword
(User user, String password) Test that the user password matches the provided password.
-
Constructor Details
-
UserTest
public UserTest()
-
-
Method Details
-
testUserID
Test that the user ID matches the provided ID and is not "hahaha".- Parameters:
user
- the User object being testedid
- the expected user ID
-
testUserPassword
Test that the user password matches the provided password.- Parameters:
user
- the User object being testedpassword
- the expected user password
-
testUserName
Test that the username matches the provided name and is not "hahaha".- Parameters:
user
- the User object being testedname
- the expected username
-
testUserEmail
Test that the user email matches the provided email and is not "hahaha".- Parameters:
user
- the User object being testedemail
- 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.
-