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
public class NewCustomerRestrictionTest extends ServicelayerTransactionalTest
Tests theNewCustomerRestrictionModel: only new customer are allowed to redeem the voucher.
-
-
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 NewCustomerRestrictionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestNewCustomerRestrictionVoucher()Tests 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, 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- Throws:
java.lang.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.
-
-