@Test public void testCreateBiddingCategory_nullCategoryLevel_fails() { thrown.expect(NullPointerException.class); ProductDimensions.createBiddingCategory(null, 1L); }
public static ProductBiddingCategory createBiddingCategory( ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId) { Preconditions.checkNotNull(productDimensionType, "ProductDimensionType is required when creating a ProductBiddingCategory"); ProductBiddingCategory productBiddingCategory = new ProductBiddingCategory(); productBiddingCategory.setType(productDimensionType); productBiddingCategory.setValue(biddingCategoryId); return productBiddingCategory; }
ProductDimensions { public static ProductBiddingCategory createBiddingCategory( ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId) { Preconditions.checkNotNull(productDimensionType, "ProductDimensionType is required when creating a ProductBiddingCategory"); ProductBiddingCategory productBiddingCategory = new ProductBiddingCategory(); productBiddingCategory.setType(productDimensionType); productBiddingCategory.setValue(biddingCategoryId); return productBiddingCategory; } }
ProductDimensions { public static ProductBiddingCategory createBiddingCategory( ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId) { Preconditions.checkNotNull(productDimensionType, "ProductDimensionType is required when creating a ProductBiddingCategory"); ProductBiddingCategory productBiddingCategory = new ProductBiddingCategory(); productBiddingCategory.setType(productDimensionType); productBiddingCategory.setValue(biddingCategoryId); return productBiddingCategory; } private  ProductDimensions(); }
ProductDimensions { public static ProductBiddingCategory createBiddingCategory( ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId) { Preconditions.checkNotNull(productDimensionType, "ProductDimensionType is required when creating a ProductBiddingCategory"); ProductBiddingCategory productBiddingCategory = new ProductBiddingCategory(); productBiddingCategory.setType(productDimensionType); productBiddingCategory.setValue(biddingCategoryId); return productBiddingCategory; } private  ProductDimensions(); static ProductType createType(ProductDimensionType productDimensionType,
      @Nullable String productTypeValue); static ProductCanonicalCondition createCanonicalCondition(
      @Nullable ProductCanonicalConditionCondition condition); static ProductBiddingCategory createBiddingCategory(
      ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId); static ProductOfferId createOfferId(@Nullable String offerId); static ProductBrand createBrand(@Nullable String brand); static ProductCustomAttribute createCustomAttribute(
      ProductDimensionType productDimensionType, @Nullable String attributeValue); static ProductChannel createChannel(@Nullable ShoppingProductChannel channel); static ProductChannelExclusivity createChannelExclusivity(
      @Nullable ShoppingProductChannelExclusivity channelExclusivity); }
ProductDimensions { public static ProductBiddingCategory createBiddingCategory( ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId) { Preconditions.checkNotNull(productDimensionType, "ProductDimensionType is required when creating a ProductBiddingCategory"); ProductBiddingCategory productBiddingCategory = new ProductBiddingCategory(); productBiddingCategory.setType(productDimensionType); productBiddingCategory.setValue(biddingCategoryId); return productBiddingCategory; } private  ProductDimensions(); static ProductType createType(ProductDimensionType productDimensionType,
      @Nullable String productTypeValue); static ProductCanonicalCondition createCanonicalCondition(
      @Nullable ProductCanonicalConditionCondition condition); static ProductBiddingCategory createBiddingCategory(
      ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId); static ProductOfferId createOfferId(@Nullable String offerId); static ProductBrand createBrand(@Nullable String brand); static ProductCustomAttribute createCustomAttribute(
      ProductDimensionType productDimensionType, @Nullable String attributeValue); static ProductChannel createChannel(@Nullable ShoppingProductChannel channel); static ProductChannelExclusivity createChannelExclusivity(
      @Nullable ShoppingProductChannelExclusivity channelExclusivity);  }