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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidTest the Coordinator subclass of the User class.voidTest the Student subclass of the User class.voidTest the Supervisor subclass of the User class.voidtestUserEmail(User user, String email) Test that the user email matches the provided email and is not "hahaha".voidtestUserID(User user, String id) Test that the user ID matches the provided ID and is not "hahaha".voidtestUserName(User user, String name) Test that the username matches the provided name and is not "hahaha".voidtestUserPassword(User user, String password) Test that the user password matches the provided password.
- 
Constructor Details- 
UserTestpublic UserTest()
 
- 
- 
Method Details- 
testUserIDTest that the user ID matches the provided ID and is not "hahaha".- Parameters:
- user- the User object being tested
- id- the expected user ID
 
- 
testUserPasswordTest that the user password matches the provided password.- Parameters:
- user- the User object being tested
- password- the expected user password
 
- 
testUserNameTest that the username matches the provided name and is not "hahaha".- Parameters:
- user- the User object being tested
- name- the expected username
 
- 
testUserEmailTest 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.
 
-