Class EventUnitTest

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

public class EventUnitTest extends Object
Unit tests for the Event, EventDetail, and EventSchedule classes.
  • Constructor Details

    • EventUnitTest

      public EventUnitTest()
  • Method Details

    • setUp

      public void setUp()
      Sets up various objects for testing.
    • testEventSchedule_isRegistrationOver

      public void testEventSchedule_isRegistrationOver()
      Tests if detection for if registration is over is working Explicitly tests a scenario where registration should be over

      - EventSchedule.isRegistrationOver() must be true

      See Also:
    • testEventSchedule_isRegistrationNotOver

      public void testEventSchedule_isRegistrationNotOver()
      Tests if detection for if registration is over is working Explicitly tests a scenario where registration should NOT be over yet

      - EventSchedule.isRegistrationOver() must be false

      See Also:
    • testEvent_isJoinable

      public void testEvent_isJoinable()
      Tests the restriction on an event and if a user can join it depending on its status.