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

    importService

    Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test

    jaloSession
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes data for testing Prices
    void
    Test method to validate the default prices retrieved for the product i.e.
    void
    Test method to validate the prices retrieved for the product and route code.
    void
    Test method to validate the prices retrieved for the product and sector code.
    void
    Test method to validate the prices retrieved for the product and transport offering code.
    void
    Test method to validate the prices when there are no prices available for the product and route code.
    protected void
    verifyPrice(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, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultTravelCommercePriceServiceIntTest

      public DefaultTravelCommercePriceServiceIntTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      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.
    • testUnavailableRoutePrices

      public void testUnavailableRoutePrices()
      Test method to validate the prices when there are no prices available 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)