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 doubleDELIVERYCOST-
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 DeliveryModeModelgetDeliveryMode()protected doublegetDiscountAmount()protected ModelServicegetModelService()protected ProductModelgetProduct()protected PromotionVoucherModelgetPromotionVoucher()protected UnitModelgetUnit()protected voidsetDeliveryMode(DeliveryModeModel deliveryMode)protected voidsetDiscountAmount(double discountAmount)protected voidsetModelService(ModelService modelService)protected voidsetProduct(ProductModel product)protected voidsetPromotionVoucher(PromotionVoucherModel promotionVoucher)protected voidsetUnit(UnitModel unit)voidsetUp()voidtearDown()-
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
-
-