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
-
Field Summary
FieldsFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DeliveryModeModelprotected doubleprotected ModelServiceprotected ProductModelprotected PromotionVoucherModelprotected UnitModelgetUnit()protected voidsetDeliveryMode(DeliveryModeModel deliveryMode) protected voidsetDiscountAmount(double discountAmount) protected voidsetModelService(ModelService modelService) protected voidsetProduct(ProductModel product) protected voidsetPromotionVoucher(PromotionVoucherModel promotionVoucher) protected voidvoidsetUp()voidtearDown()Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
DELIVERYCOST
protected static final double DELIVERYCOST- See Also:
-
-
Constructor Details
-
AbstractVoucherTest
public AbstractVoucherTest()
-
-
Method Details
-
setUp
- Throws:
ConsistencyCheckException
-
tearDown
public void tearDown() -
getModelService
- Returns:
- the modelService
-
setModelService
- Parameters:
modelService- the modelService to set
-
getDeliveryMode
- Returns:
- the deliveryMode
-
setDeliveryMode
- Parameters:
deliveryMode- the deliveryMode to set
-
getProduct
- Returns:
- the product
-
setProduct
- Parameters:
product- the product to set
-
getPromotionVoucher
- Returns:
- the promotionVoucher
-
setPromotionVoucher
- Parameters:
promotionVoucher- the promotionVoucher to set
-
getUnit
- Returns:
- the unit
-
setUnit
- 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
-