Class TicketDBDataFlowTest

java.lang.Object
com.example.breeze_seas.TicketDBDataFlowTest

public class TicketDBDataFlowTest extends Object
Data-flow tests for TicketDB that verify how cached Firestore data becomes ticket tabs.
  • Constructor Details

    • TicketDBDataFlowTest

      public TicketDBDataFlowTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      Throws:
      Exception
    • recomputeTicketsFromRealtimeCache_acceptedParticipantCreatesAttendingTicket

      public void recomputeTicketsFromRealtimeCache_acceptedParticipantCreatesAttendingTicket() throws Exception
      Verifies 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

      public void recomputeTicketsFromRealtimeCache_unknownStatusAddsNoTickets() throws Exception
      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 Exception
      Verifies 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 Exception
      Verifies 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

      public void applyLocalParticipantRemoval_waitingTicketRemovesItFromActiveList() throws Exception
      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 Exception
      Verifies 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.