Package de.hybris.platform.voucher.jalo
Class PromotionVoucherTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.servicelayer.ServicelayerTransactionalTest
-
- de.hybris.platform.voucher.jalo.PromotionVoucherTest
-
- All Implemented Interfaces:
JaloSessionHolder
public class PromotionVoucherTest extends ServicelayerTransactionalTest
Test the PromotionVoucher.
-
-
Field Summary
-
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 PromotionVoucherTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Creates necessary data.void
testPromotionVoucherRestriction()
Creates 3 carts, and tries to redeem the same voucher-
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
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
Creates necessary data.- Throws:
java.lang.Exception
-
testPromotionVoucherRestriction
public void testPromotionVoucherRestriction() throws JaloPriceFactoryException, InvalidCartException, InvalidCartException
Creates 3 carts, and tries to redeem the same voucher
-
-