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 TestDatabase
private static boolean
(package private) static User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
closeDb()
void
createDb()
void
Tests the admin notification attribute of the User modelvoid
Tests the admin attribute of the User modelvoid
Tests the Description attribute of the User modelvoid
Tests the Email attribute of the User modelvoid
Tests the Name attribute of the user modelvoid
Tests the organization notification attribute of the User modelvoid
Tests 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
-