Class BundleOrderEntryRemoveableCheckerNestedIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.configurablebundleservices.bundle.impl.BundleOrderEntryRemoveableCheckerNestedIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class BundleOrderEntryRemoveableCheckerNestedIntegrationTest extends ServicelayerTest
-
-
Field Summary
Fields Modifier and Type Field Description protected CartModel
cart
protected CommerceCartService
commerceCartService
static java.lang.String
OPTIONAL_COMPONENT
static java.lang.String
PRODUCT01
protected ProductService
productService
static java.lang.String
REGULAR_COMPONENT
protected UnitModel
unitModel
protected UserService
userService
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description BundleOrderEntryRemoveableCheckerNestedIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addToCart(java.lang.String productCode)
protected void
addToCart(java.lang.String productCode, java.lang.String componentId)
protected BundleTemplateModel
getBundleTemplate(java.lang.String templateId)
protected CatalogVersionModel
getCatalog()
protected ProductModel
getProduct(java.lang.String code)
void
setUp()
void
shouldDeleteItemsWhichSatisfyMinCondition()
void
shouldNotDeleteItemsWhichDontSatisfyMinCondition()
void
shouldRemoveNonBundleEntry()
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Field Detail
-
PRODUCT01
public static final java.lang.String PRODUCT01
- See Also:
- Constant Field Values
-
REGULAR_COMPONENT
public static final java.lang.String REGULAR_COMPONENT
- See Also:
- Constant Field Values
-
OPTIONAL_COMPONENT
public static final java.lang.String OPTIONAL_COMPONENT
- See Also:
- Constant Field Values
-
cart
protected CartModel cart
-
unitModel
protected UnitModel unitModel
-
userService
protected UserService userService
-
commerceCartService
protected CommerceCartService commerceCartService
-
productService
protected ProductService productService
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldNotDeleteItemsWhichDontSatisfyMinCondition
public void shouldNotDeleteItemsWhichDontSatisfyMinCondition() throws CommerceCartModificationException, CalculationException
-
shouldDeleteItemsWhichSatisfyMinCondition
public void shouldDeleteItemsWhichSatisfyMinCondition() throws CommerceCartModificationException, CalculationException
-
shouldRemoveNonBundleEntry
public void shouldRemoveNonBundleEntry() throws CommerceCartModificationException, CalculationException
-
addToCart
protected void addToCart(java.lang.String productCode, java.lang.String componentId) throws CommerceCartModificationException
-
addToCart
protected void addToCart(java.lang.String productCode) throws CommerceCartModificationException
-
getProduct
protected ProductModel getProduct(java.lang.String code)
-
getBundleTemplate
protected BundleTemplateModel getBundleTemplate(java.lang.String templateId)
-
getCatalog
protected CatalogVersionModel getCatalog()
-
-