use of org.alfresco.rest.api.model.Node in project alfresco-remote-api by Alfresco.
the class ResultMapperTests method testNoResults.
@Test
public void testNoResults() throws Exception {
SearchRequestContext searchRequest = SearchRequestContext.from(SearchQuery.EMPTY);
CollectionWithPagingInfo<Node> collection = mapper.toCollectionWithPagingInfo(EMPTY_PARAMS, searchRequest, null, new EmptyResultSet());
assertNotNull(collection);
assertFalse(collection.hasMoreItems());
assertTrue(collection.getTotalItems() < 1);
assertNull(collection.getContext());
}
Aggregations