Assert.assertTrue(!collections.isEmpty());
}
@Test
public void testGetPaginatedCollections() throws IOException{
CustomCollectionsService svc = client.constructInterface(CustomCollectionsService.class);
List<CustomCollection> collections = new ArrayList<CustomCollection>();
int page = 0;
while(true){
List<CustomCollection> newCollections = svc.getCustomCollections("page="+page);
if(!collections.addAll(newCollections)) break; //false means the collection didn't change, so the page was empty
page++;
}
Assert.assertTrue(!collections.isEmpty());