Class TicketsWebServiceCursorTest

java.lang.Object
ubic.gemma.rest.TicketsWebServiceCursorTest

@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) public class TicketsWebServiceCursorTest extends Object
Unit tests for the cursor-pagination branch added to TicketsWebService#getTickets(boolean, Long, TicketPriority, OffsetArg, LimitArg, CursorArg) as step 1o of CURSOR_PAGINATION_STEP1_PLAN.md. Pure Mockito — the goal is to verify the WebService routes cursor vs offset modes to the right helper and emits the right response wrapper, not to retest the DAO (the keyset HQL is covered separately).

Mirrors the pattern of the prior cursor-mode WebService tests (1b–1n): one test per mode-routing branch, one test verifying the encoded cursor round-trips intact through CursorArg.valueOf(String) into the service call, one test for empty pages.

Author:
phase3
  • Constructor Details

    • TicketsWebServiceCursorTest

      public TicketsWebServiceCursorTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • offsetModeRoutesToLegacyHelperAndReturnsPaginatedResponse

      @Test public void offsetModeRoutesToLegacyHelperAndReturnsPaginatedResponse()
    • cursorModeRoutesToCursorHelperAndReturnsCursorResponse

      @Test public void cursorModeRoutesToCursorHelperAndReturnsCursorResponse()
    • cursorModeDecodesCursorAndForwardsToService

      @Test public void cursorModeDecodesCursorAndForwardsToService()
    • cursorModeForwardsFilterTripleUnchanged

      @Test public void cursorModeForwardsFilterTripleUnchanged()
    • cursorModeEmptyPageProducesEmptyResponseWithNoCursors

      @Test public void cursorModeEmptyPageProducesEmptyResponseWithNoCursors()
    • cursorModePreservesAscendingIdOrderFromService

      @Test public void cursorModePreservesAscendingIdOrderFromService()