public class NewCustomerRestrictionTest extends ServicelayerTransactionalTest
NewCustomerRestrictionModel: only new customer are allowed to redeem the voucher.importServicejaloSession| Constructor and Description |
|---|
NewCustomerRestrictionTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testNewCustomerRestrictionVoucher()
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.
|
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testNewCustomerRestrictionVoucher()
throws JaloPriceFactoryException,
InvalidCartException
Copyright © 2018 SAP SE. All Rights Reserved.