Package de.hybris.platform.voucher.jalo
Class AbstractVoucherTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.voucher.jalo.AbstractVoucherTest
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
VoucherDeliveryCostBug_PLA_10914_JaloTest
,VoucherDeliveryCostBug_PLA_10914_SLayerTest
public abstract class AbstractVoucherTest extends ServicelayerTest
-
-
Field Summary
Fields Modifier and Type Field Description protected static double
DELIVERYCOST
-
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 AbstractVoucherTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DeliveryModeModel
getDeliveryMode()
protected double
getDiscountAmount()
protected ModelService
getModelService()
protected ProductModel
getProduct()
protected PromotionVoucherModel
getPromotionVoucher()
protected UnitModel
getUnit()
protected void
setDeliveryMode(DeliveryModeModel deliveryMode)
protected void
setDiscountAmount(double discountAmount)
protected void
setModelService(ModelService modelService)
protected void
setProduct(ProductModel product)
protected void
setPromotionVoucher(PromotionVoucherModel promotionVoucher)
protected void
setUnit(UnitModel unit)
void
setUp()
void
tearDown()
-
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
-
DELIVERYCOST
protected static final double DELIVERYCOST
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp() throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
tearDown
public void tearDown()
-
getModelService
protected ModelService getModelService()
- Returns:
- the modelService
-
setModelService
protected void setModelService(ModelService modelService)
- Parameters:
modelService
- the modelService to set
-
getDeliveryMode
protected DeliveryModeModel getDeliveryMode()
- Returns:
- the deliveryMode
-
setDeliveryMode
protected void setDeliveryMode(DeliveryModeModel deliveryMode)
- Parameters:
deliveryMode
- the deliveryMode to set
-
getProduct
protected ProductModel getProduct()
- Returns:
- the product
-
setProduct
protected void setProduct(ProductModel product)
- Parameters:
product
- the product to set
-
getPromotionVoucher
protected PromotionVoucherModel getPromotionVoucher()
- Returns:
- the promotionVoucher
-
setPromotionVoucher
protected void setPromotionVoucher(PromotionVoucherModel promotionVoucher)
- Parameters:
promotionVoucher
- the promotionVoucher to set
-
getUnit
protected UnitModel getUnit()
- Returns:
- the unit
-
setUnit
protected void setUnit(UnitModel unit)
- Parameters:
unit
- the unit to set
-
getDiscountAmount
protected double getDiscountAmount()
- Returns:
- the discountAmount
-
setDiscountAmount
protected void setDiscountAmount(double discountAmount)
- Parameters:
discountAmount
- the discountAmount to set
-
-