Package com.example.breeze_seas
Class TicketDBDataFlowTest
java.lang.Object
com.example.breeze_seas.TicketDBDataFlowTest
Data-flow tests for
TicketDB that verify how cached Firestore data becomes ticket tabs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidVerifies that removing a waiting-list participant row clears the related ticket from the Active tab instead of leaving stale cached data behind.voidVerifies that applying an accepted participant-status update moves a future public event from the Active tab into the Attending tab.voidVerifies that an accepted participant row with matching event metadata is classified into the Attending tab and mapped into the expected attending ticket fields.voidVerifies that an ended event is moved into the Past tab even when the participant status would normally map to Attending.voidVerifies that a private event invite is classified as an active action-required ticket and preserves the private-event flag needed by the invitation decision flow.voidVerifies that unsupported participant statuses are ignored instead of being classified into the Active, Attending, or Past tab lists.voidsetUp()voidtearDown()
-
Constructor Details
-
TicketDBDataFlowTest
public TicketDBDataFlowTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
recomputeTicketsFromRealtimeCache_acceptedParticipantCreatesAttendingTicket
public void recomputeTicketsFromRealtimeCache_acceptedParticipantCreatesAttendingTicket() throws ExceptionVerifies that an accepted participant row with matching event metadata is classified into the Attending tab and mapped into the expected attending ticket fields.- Throws:
Exception- When reflection-based cache setup fails.
-
recomputeTicketsFromRealtimeCache_unknownStatusAddsNoTickets
Verifies that unsupported participant statuses are ignored instead of being classified into the Active, Attending, or Past tab lists.- Throws:
Exception- When reflection-based cache setup fails.
-
recomputeTicketsFromRealtimeCache_endedAcceptedEventCreatesPastTicket
public void recomputeTicketsFromRealtimeCache_endedAcceptedEventCreatesPastTicket() throws ExceptionVerifies that an ended event is moved into the Past tab even when the participant status would normally map to Attending.- Throws:
Exception- When reflection-based cache setup fails.
-
applyLocalParticipantStatusUpdate_pendingToAcceptedMovesTicketToAttending
public void applyLocalParticipantStatusUpdate_pendingToAcceptedMovesTicketToAttending() throws ExceptionVerifies that applying an accepted participant-status update moves a future public event from the Active tab into the Attending tab.- Throws:
Exception- When reflection-based cache setup fails.
-
applyLocalParticipantRemoval_waitingTicketRemovesItFromActiveList
Verifies that removing a waiting-list participant row clears the related ticket from the Active tab instead of leaving stale cached data behind.- Throws:
Exception- When reflection-based cache setup fails.
-
recomputeTicketsFromRealtimeCache_privateInviteCreatesActionRequiredActiveTicket
public void recomputeTicketsFromRealtimeCache_privateInviteCreatesActionRequiredActiveTicket() throws ExceptionVerifies that a private event invite is classified as an active action-required ticket and preserves the private-event flag needed by the invitation decision flow.- Throws:
Exception- When reflection-based cache setup fails.
-