@IntegrationTest public class DiscountServiceTest extends ServicelayerTransactionalTest
importServicejaloSession| Constructor and Description |
|---|
DiscountServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Creates the core data, and 4 discounts.
|
void |
shouldGetDiscountInfo() |
void |
testGetDiscount()
Tries to search the discount with code:
successful with "totally_free",
caught UnknownIdentifierException with "No_Such_Discount",
found two discounts, that both contains "percent".
|
void |
testGetDiscountByCurrency()
|
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 testGetDiscount()
public void testGetDiscountByCurrency()
public void shouldGetDiscountInfo()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.