Class DefaultTravelCommercePriceServiceIntTest
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.travelservices.price.impl.integration.DefaultTravelCommercePriceServiceIntTest
- All Implemented Interfaces:
de.hybris.platform.testframework.JaloSessionHolder
@IntegrationTest
public class DefaultTravelCommercePriceServiceIntTest
extends de.hybris.platform.servicelayer.ServicelayerTransactionalTest
JUnit test suite for
DefaultTravelCommercePriceService
Tests to validate the prices retrieved for a specific product and travel specific search criteria.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Initializes data for testing PricesvoidTest method to validate the default prices retrieved for the product i.e.voidTest method to validate the prices retrieved for the product and route code.voidTest method to validate the prices retrieved for the product and sector code.voidTest method to validate the prices retrieved for the product and transport offering code.voidTest method to validate the prices when there are no prices available for the product and route code.protected voidverifyPrice(de.hybris.platform.jalo.order.price.PriceInformation price, double expectedPrice) Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
DefaultTravelCommercePriceServiceIntTest
public DefaultTravelCommercePriceServiceIntTest()
-
-
Method Details
-
setUp
Initializes data for testing Prices- Throws:
Exception
-
testTransportOfferingPrices
public void testTransportOfferingPrices()Test method to validate the prices retrieved for the product and transport offering code. -
testSectorPrices
public void testSectorPrices()Test method to validate the prices retrieved for the product and sector code. -
testRoutePrices
public void testRoutePrices()Test method to validate the prices retrieved for the product and route code. -
testDefaultPrices
public void testDefaultPrices()Test method to validate the default prices retrieved for the product i.e. with no travel specific search criteria. -
verifyPrice
protected void verifyPrice(de.hybris.platform.jalo.order.price.PriceInformation price, double expectedPrice)
-