Class AbstractCalculationServiceTest
- 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.order.calculation.AbstractCalculationServiceTest
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
CalculationServiceJaloCacheTest
,CalculationServiceJaloNoCacheTest
,CalculationServiceNoJaloCacheTest
,CalculationServiceNoJaloNoCacheTest
@IntegrationTest public abstract class AbstractCalculationServiceTest extends ServicelayerTransactionalTest
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertyConfigSwitcher
europe1CacheTaxesProperty
protected PropertyConfigSwitcher
pdtCalculationModeProperty
-
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 AbstractCalculationServiceTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
prepareSettings()
void
revertSettings()
void
setUp()
void
shouldCalculateOrderWithGivenDateWithTaxesWithDateRange()
void
shouldRecalculateEntryEvenWhenItIsAlreadyCalculated()
void
shouldRecalculateOrderWithGivenDateWhenQuantityChanged()
void
shouldRecalculateOrderWithGivenDateWithTaxesWithDateRange()
void
shouldSetBackOrderDateWhenCalculationExceptionOccours()
void
testApplyDiscounts()
void
testApplyGlobalDiscounts()
void
testApplyTaxes()
void
testCalculateAbstractOrderModel()
void
testConvertPriceCurrency()
void
testConvertPriceNetGross()
void
testEntryCalculation()
void
testGiveAwayHandling()
void
testRecalculateOrderEntry()
void
testRequiresCalculation()
-
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
-
-
-
-
Field Detail
-
europe1CacheTaxesProperty
protected PropertyConfigSwitcher europe1CacheTaxesProperty
-
pdtCalculationModeProperty
protected PropertyConfigSwitcher pdtCalculationModeProperty
-
-
Method Detail
-
prepareSettings
public abstract void prepareSettings()
-
revertSettings
public void revertSettings()
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRequiresCalculation
public void testRequiresCalculation() throws CalculationException
- Throws:
CalculationException
-
testCalculateAbstractOrderModel
public void testCalculateAbstractOrderModel() throws CalculationException
Test method forCalculationService.calculate(de.hybris.platform.core.model.order.AbstractOrderModel)
.- Throws:
CalculationException
-
testRecalculateOrderEntry
public void testRecalculateOrderEntry() throws CalculationException
- Throws:
CalculationException
-
testGiveAwayHandling
public void testGiveAwayHandling()
-
testEntryCalculation
public void testEntryCalculation() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testApplyGlobalDiscounts
public void testApplyGlobalDiscounts() throws CalculationException
- Throws:
CalculationException
-
testApplyTaxes
public void testApplyTaxes() throws CalculationException
- Throws:
CalculationException
-
testApplyDiscounts
public void testApplyDiscounts() throws CalculationException
- Throws:
CalculationException
-
testConvertPriceNetGross
public void testConvertPriceNetGross()
-
testConvertPriceCurrency
public void testConvertPriceCurrency()
-
shouldRecalculateEntryEvenWhenItIsAlreadyCalculated
public void shouldRecalculateEntryEvenWhenItIsAlreadyCalculated() throws CalculationException
- Throws:
CalculationException
-
shouldRecalculateOrderWithGivenDateWhenQuantityChanged
public void shouldRecalculateOrderWithGivenDateWhenQuantityChanged() throws CalculationException
- Throws:
CalculationException
-
shouldRecalculateOrderWithGivenDateWithTaxesWithDateRange
public void shouldRecalculateOrderWithGivenDateWithTaxesWithDateRange() throws CalculationException
- Throws:
CalculationException
-
shouldCalculateOrderWithGivenDateWithTaxesWithDateRange
public void shouldCalculateOrderWithGivenDateWithTaxesWithDateRange() throws CalculationException
- Throws:
CalculationException
-
shouldSetBackOrderDateWhenCalculationExceptionOccours
public void shouldSetBackOrderDateWhenCalculationExceptionOccours() throws CalculationException
- Throws:
CalculationException
-
-