Package com.example.breeze_seas
Class TicketsFragmentTest
java.lang.Object
com.example.breeze_seas.TicketsFragmentTest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Seeds deterministic ticket-tab data and launches the Tickets host fragment under test.voidtearDown()Clears the seeded ticket state after each test so later instrumentation tests start clean.voidVerifies that the Tickets host restores the previously selected page after recreation.voidVerifies that tapping each custom Tickets tab moves the pager to the matching page index.
-
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.
-