Package de.hybris.platform.order
Class DiscountServiceTest
- java.lang.Object
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class DiscountServiceTest extends ServicelayerTransactionalTest
-
-
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 DiscountServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
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 the core data, and 4 discounts.- Throws:
java.lang.Exception
-
testGetDiscount
public 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".
-
testGetDiscountByCurrency
public void testGetDiscountByCurrency()
-
shouldGetDiscountInfo
public void shouldGetDiscountInfo() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-