Examples of ProductItemCategory


Examples of org.jclouds.softlayer.domain.ProductItemCategory

   }

   @Test
   public void testItemCallCategoryExists() {

      ProductItemCategory category2 = ProductItemCategory.builder()
            .id(12)
            .categoryCode("new category")
            .build();

      ProductItem item1 = item.toBuilder().categories(ImmutableSet.of(category2)).build();
View Full Code Here

Examples of org.jclouds.softlayer.domain.ProductItemCategory

      assert ProductItemPredicates.categoryCode("ram").apply(item);
   }

   @Test
   public void testCategoryCodePresentTwoCategories() {
      ProductItemCategory osCategory = ProductItemCategory.builder().id(2).categoryCode("os").build();

      ProductItem item = ProductItem.builder().categories(ImmutableSet.of(ramCategory, osCategory)).build();

      assert ProductItemPredicates.categoryCode("ram").apply(item);
   }
View Full Code Here

Examples of org.jclouds.softlayer.domain.ProductItemCategory

      assert ProductItemPredicates.categoryCode("ram").apply(item);
   }

   @Test
   public void testCategoryCodePresentTwoCategories() {
      ProductItemCategory osCategory = ProductItemCategory.builder().id(2).categoryCode("os").build();

      ProductItem item = ProductItem.builder().categories(ImmutableSet.of(ramCategory, osCategory)).build();

      assert ProductItemPredicates.categoryCode("ram").apply(item);
   }
View Full Code Here

Examples of org.jclouds.softlayer.domain.ProductItemCategory

   }

   @Test
   public void testItemCallCategoryExists() {

      ProductItemCategory category2 = ProductItemCategory.builder()
            .id(12)
            .categoryCode("new category")
            .build();

      ProductItem item1 = item.toBuilder().categories(ImmutableSet.of(category2)).build();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.