Class ActiveTicketsFragmentTest

java.lang.Object
com.example.breeze_seas.ActiveTicketsFragmentTest

public class ActiveTicketsFragmentTest extends Object
Instrumentation tests for ActiveTicketsFragment.

These tests verify that seeded TicketDB data is rendered into the active-ticket recycler and that later cache updates are reflected in the fragment UI.

  • Constructor Details

    • ActiveTicketsFragmentTest

      public ActiveTicketsFragmentTest()
  • Method Details

    • setUp

      public void setUp()
      Enables deterministic ticket seeding and launches the Active Tickets fragment.
    • tearDown

      public void tearDown()
      Clears the seeded ticket cache after each test to avoid cross-test pollution.
    • activeTicketsFragment_rendersTicketDbContentInRecyclerView

      public void activeTicketsFragment_rendersTicketDbContentInRecyclerView()
      Verifies that one seeded active ticket is rendered with its title, date, status, and footer hint in the recycler view.
    • activeTicketsFragment_updatesRenderedRowsWhenTicketDbPublishesChanges

      public void activeTicketsFragment_updatesRenderedRowsWhenTicketDbPublishesChanges()
      Verifies that the fragment updates its recycler contents after the seeded ticket cache changes from empty to one action-required ticket.