Class TicketsFragmentTest

java.lang.Object
com.example.breeze_seas.TicketsFragmentTest

public class TicketsFragmentTest extends Object
Instrumentation tests for the Tickets tab host fragment.

These tests verify that the custom tab controls drive the pager to the expected page and that the selected page survives fragment recreation.

  • Constructor Details

    • TicketsFragmentTest

      public TicketsFragmentTest()
  • Method Details

    • setUp

      public void setUp()
      Seeds deterministic ticket-tab data and launches the Tickets host fragment under test.
    • tearDown

      public void tearDown()
      Clears the seeded ticket state after each test so later instrumentation tests start clean.
    • ticketsScreen_switchesPagerIndexWhenTabsArePressed

      public void ticketsScreen_switchesPagerIndexWhenTabsArePressed()
      Verifies that tapping each custom Tickets tab moves the pager to the matching page index.
    • ticketsScreen_restoresSelectedPageAfterRecreation

      public void ticketsScreen_restoresSelectedPageAfterRecreation()
      Verifies that the Tickets host restores the previously selected page after recreation.