Package com.shopify.api.resources

Examples of com.shopify.api.resources.CustomCollection


 
  @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


  }
 
  @Test
  public void testCreateCollection() throws IOException{
    try {
      CustomCollection collection = client.constructInterface(CustomCollectionsService.class).createCustomCollection(new CustomCollection().setTitle("Test 123"));
      Assert.assertTrue(collection.getId()>0);
      client.constructInterface(CustomCollectionsService.class).deleteCustomCollection(collection.getId());
    } catch (BadRequestException e) {
      throw new RuntimeException(e.getResponse().readEntity(String.class));
    }
  }
View Full Code Here

TOP

Related Classes of com.shopify.api.resources.CustomCollection

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.