Package com.syzygy.events.ModelTests
Class UserTest
java.lang.Object
com.syzygy.events.ModelTests.UserTest
Unit Test class for the user model
- Since:
- 05nov2024
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TestDatabaseprivate static boolean(package private) static User -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseDb()voidcreateDb()voidTests the admin notification attribute of the User modelvoidTests the admin attribute of the User modelvoidTests the Description attribute of the User modelvoidTests the Email attribute of the User modelvoidTests the Name attribute of the user modelvoidTests the organization notification attribute of the User modelvoidTests the Phone attribute of the User model
-
Field Details
-
setUpComplete
private static boolean setUpComplete -
testUser
-
db
-
-
Constructor Details
-
UserTest
public UserTest()
-
-
Method Details
-
createDb
- Throws:
InterruptedException
-
closeDb
public static void closeDb() -
testUserName
public void testUserName()Tests the Name attribute of the user model -
testUserDescription
public void testUserDescription()Tests the Description attribute of the User model -
testUserEmail
public void testUserEmail()Tests the Email attribute of the User model -
testUserPhone
public void testUserPhone()Tests the Phone attribute of the User model -
testUserAdminNotifs
public void testUserAdminNotifs()Tests the admin notification attribute of the User model -
testUserOrgNotifs
public void testUserOrgNotifs()Tests the organization notification attribute of the User model -
testUserAdminStatus
public void testUserAdminStatus()Tests the admin attribute of the User model
-