@Test @SuppressWarnings("unchecked") public void testSize() { final PageableRepository<Person, String> repo = createMock(PageableRepository.class); final int expected = 100; expect(repo.size()).andReturn(expected); replayAll(); PageableRepositoryDataProvider<Person, String> provider = new PageableRepositoryDataProvider<Person, String>(repo, "first"); long actual = provider.size(); assertEquals(actual, expected); }
public long size() { return repository.size(); }
PageableRepositoryDataProvider extends
        SortableDataProvider<E, String> { public long size() { return repository.size(); } }
PageableRepositoryDataProvider extends
        SortableDataProvider<E, String> { public long size() { return repository.size(); } PageableRepositoryDataProvider(PageableRepository<E, I> repository, String sortProperty);  PageableRepositoryDataProvider(PageableRepository<E, I> repository, String sortProperty, boolean ascending); }
PageableRepositoryDataProvider extends
        SortableDataProvider<E, String> { public long size() { return repository.size(); } PageableRepositoryDataProvider(PageableRepository<E, I> repository, String sortProperty);  PageableRepositoryDataProvider(PageableRepository<E, I> repository, String sortProperty, boolean ascending); Iterator<? extends E> iterator(long first, long max); IModel<E> model(E entity); long size(); }
PageableRepositoryDataProvider extends
        SortableDataProvider<E, String> { public long size() { return repository.size(); } PageableRepositoryDataProvider(PageableRepository<E, I> repository, String sortProperty);  PageableRepositoryDataProvider(PageableRepository<E, I> repository, String sortProperty, boolean ascending); Iterator<? extends E> iterator(long first, long max); IModel<E> model(E entity); long size();  }