Package com.example.skeddly.business
Class EventUnitTest
java.lang.Object
com.example.skeddly.business.EventUnitTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Sets up various objects for testing.voidTests the restriction on an event and if a user can join it depending on its status.voidTests if detection for if registration is over is working Explicitly tests a scenario where registration should NOT be over yetvoidTests if detection for if registration is over is working Explicitly tests a scenario where registration should be over
-
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.
-