Class ExpressionExperimentDaoCursorTest

java.lang.Object
ubic.gemma.core.util.test.BaseTest5
ubic.gemma.core.util.test.BaseDatabaseTest5
ubic.gemma.persistence.service.expression.experiment.ExpressionExperimentDaoCursorTest

@ContextConfiguration @TestExecutionListeners(value=org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener.class, mergeMode=MERGE_WITH_DEFAULTS) @WithMockUser(authorities="GROUP_ADMIN") public class ExpressionExperimentDaoCursorTest extends BaseDatabaseTest5
Integration tests for the keyset (cursor) pagination DAO mechanism on ExpressionExperimentDao. Verifies that FilteringVoEnabledDao.loadValueObjectsByCursor(ubic.gemma.persistence.util.Filters, Sort, Cursor, int) walks the result set in stable id order without duplicates or skips, that cursor tokens round-trip through encode/decode, and that the sort-must-end-in-id and matching-sort-spec invariants are enforced.
Author:
phase3
  • Constructor Details

    • ExpressionExperimentDaoCursorTest

      public ExpressionExperimentDaoCursorTest()
  • Method Details

    • testFirstPageEmitsNextCursor

      @Test public void testFirstPageEmitsNextCursor()
    • testCursorWalkProducesDisjointPages

      @Test public void testCursorWalkProducesDisjointPages()
    • testLastPageHasNoNextCursor

      @Test public void testLastPageHasNoNextCursor()
    • testDescendingCursorWalk

      @Test public void testDescendingCursorWalk()
    • testNonIdSortRejected

      @Test public void testNonIdSortRejected()
    • testCompoundSortRejected

      @Test public void testCompoundSortRejected()
    • testMismatchedCursorSortSpecRejected

      @Test public void testMismatchedCursorSortSpecRejected()
    • testBackwardCursorReturnsPreviousPage

      @Test public void testBackwardCursorReturnsPreviousPage()