Package com.shopify.api.services

Examples of com.shopify.api.services.CustomCollectionsService$CustomCollectionList


    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());
View Full Code Here


    Assert.assertTrue(!collections.isEmpty());
  }
 
  @Test
  public void testGetTwoCollections() throws IOException{
    CustomCollectionsService svc = client.constructInterface(CustomCollectionsService.class);
   
    CustomCollection collection1 = svc.getCustomCollection(12833757);
    CustomCollection collection2 = svc.getCustomCollection(12833541);
    Assert.assertTrue(collection2.getId()!=collection1.getId());
  }
View Full Code Here

TOP

Related Classes of com.shopify.api.services.CustomCollectionsService$CustomCollectionList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.