Package de.hybris.platform.voucher
Class NewCustomerRestrictionTest
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.NewCustomerRestrictionTest
- All Implemented Interfaces:
JaloSessionHolder
Tests the
NewCustomerRestrictionModel: only new customer are allowed to redeem the voucher.-
Field Summary
Fields 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 TypeMethodDescriptionvoidsetUp()voidTests the voucher with new user restriction(VOU-171): adds a product to cart, and redeems the voucher which is applicable, creates an order from this cart, creates a new cart, and adds 2 products to it, the voucher is not applicable any more for the current user.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
-
Constructor Details
-
NewCustomerRestrictionTest
public NewCustomerRestrictionTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testNewCustomerRestrictionVoucher
public void testNewCustomerRestrictionVoucher() throws JaloPriceFactoryException, InvalidCartExceptionTests the voucher with new user restriction(VOU-171):- adds a product to cart, and redeems the voucher which is applicable,
- creates an order from this cart,
- creates a new cart, and adds 2 products to it,
- the voucher is not applicable any more for the current user.
-