@Test public void testGetSourcesLikePagedNoOffset() { List<Species> allSpecies = mSpeciesDao.getSpeciesLike(SPECIES_LIKE_TERM, null, null); List<Species> pagedSpecies = mSpeciesDao.getSpeciesLike(SPECIES_LIKE_TERM, null, TestConstants.TEST_LIMIT); PageTestAsserter.assertPagedNoOffset(allSpecies, pagedSpecies); }
@Test public void testGetSpeciesLikePagedNoLimit() { List<Species> allSpecies = mSpeciesDao.getSpeciesLike(SPECIES_LIKE_TERM, null, null); List<Species> pagedSpecies = mSpeciesDao.getSpeciesLike(SPECIES_LIKE_TERM, TestConstants.TEST_OFFSET, null); PageTestAsserter.assertPagedNoLimit(allSpecies, pagedSpecies); }