Class NotificationUnitTest

java.lang.Object
com.example.skeddly.business.NotificationUnitTest

public class NotificationUnitTest extends Object
Unit tests for the Notification business object. Verifies constructor logic and getter/setter functionality.
  • Constructor Details

    • NotificationUnitTest

      public NotificationUnitTest()
  • Method Details

    • setUp

      public void setUp()
      This method is executed before each test. It creates a fresh instance of the Notification class.
    • notification_DefaultConstructor_InitializesCorrectly

      public void notification_DefaultConstructor_InitializesCorrectly()
      Tests the default constructor to ensure all fields are initialized correctly. - ID should be a valid UUID. - isRead should be false. - Status should be PENDING.
    • notification_GetAndSetTitle

      public void notification_GetAndSetTitle()
      Verifies that the getter and setter for the Title field work as expected.
    • notification_GetAndSetMessage

      public void notification_GetAndSetMessage()
      Verifies that the getter and setter for the Message field work as expected.
    • notification_GetAndSetType

      public void notification_GetAndSetType()
      Verifies that the getter and setter for the NotificationType enum work as expected.
    • notification_GetAndSetTicketId

      public void notification_GetAndSetTicketId()
      Verifies that the getter and setter for the Ticket ID field work as expected.
    • notification_GetAndSetRead

      public void notification_GetAndSetRead()
      Verifies that the getter and setter for the isRead boolean work as expected.
    • notification_GetAndSetStatus

      public void notification_GetAndSetStatus()
      Verifies that the getter and setter for the NotificationInvitationStatus enum work as expected.