Class CommerceInventoryTestUtil

java.lang.Object
com.liferay.commerce.test.util.CommerceInventoryTestUtil

public class CommerceInventoryTestUtil extends Object
  • Constructor Details

    • CommerceInventoryTestUtil

      public CommerceInventoryTestUtil()
  • Method Details

    • addCommerceInventoryWarehouse

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouse addCommerceInventoryWarehouse() throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouse

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouse addCommerceInventoryWarehouse(boolean active) throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouse

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouse addCommerceInventoryWarehouse(boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouse

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouse addCommerceInventoryWarehouse(Map<Locale,String> nameMap) throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouse

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouse addCommerceInventoryWarehouse(Map<Locale,String> nameMap, boolean active) throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouse

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouse addCommerceInventoryWarehouse(Map<Locale,String> nameMap, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouse

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouse addCommerceInventoryWarehouse(Map<Locale,String> nameMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouse

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouse addCommerceInventoryWarehouse(com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouseItem

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouseItem addCommerceInventoryWarehouseItem(long commerceChannelId, BigDecimal quantity, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouseItem

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouseItem addCommerceInventoryWarehouseItem(long userId, com.liferay.commerce.inventory.model.CommerceInventoryWarehouse commerceInventoryWarehouse, BigDecimal quantity, String sku, String unitOfMeasureKey) throws Exception
      Throws:
      Exception
    • addCommerceInventoryWarehouseWithExternalReferenceCode

      public static com.liferay.commerce.inventory.model.CommerceInventoryWarehouse addCommerceInventoryWarehouseWithExternalReferenceCode(long groupId, Map<Locale,String> nameMap) throws Exception
      Throws:
      Exception
    • addCountry

      public static com.liferay.portal.kernel.model.Country addCountry(com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addRandomCPInstanceSku

      public static com.liferay.commerce.product.model.CPInstance addRandomCPInstanceSku(long groupId) throws Exception
      Throws:
      Exception
    • addRegion

      public static com.liferay.portal.kernel.model.Region addRegion(long countryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException