Package com.example.breeze_seas
Class ActiveTicketsFragmentTest
java.lang.Object
com.example.breeze_seas.ActiveTicketsFragmentTest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidVerifies that one seeded active ticket is rendered with its title, date, status, and footer hint in the recycler view.voidVerifies that the fragment updates its recycler contents after the seeded ticket cache changes from empty to one action-required ticket.voidsetUp()Enables deterministic ticket seeding and launches the Active Tickets fragment.voidtearDown()Clears the seeded ticket cache after each test to avoid cross-test pollution.
-
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.
-