Class DefaultTravelRouteServiceIntegrationTest

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.services.impl.DefaultTravelRouteServiceIntegrationTest
All Implemented Interfaces:
de.hybris.platform.testframework.JaloSessionHolder

@IntegrationTest public class DefaultTravelRouteServiceIntegrationTest extends de.hybris.platform.servicelayer.ServicelayerTransactionalTest
Integration test to test the functionality of the TravelRoute Service. This test case will save some sample data to use for each scenario.
  • 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
    Test case to test a valid scenario where a List of TravelRoutes are returned based on the Origin and Destination TransportFacility provided.
    void
    Test case to test a scenario where no TravelRoute is found.
    void
    Initial setup of data for the test case

    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

    • DefaultTravelRouteServiceIntegrationTest

      public DefaultTravelRouteServiceIntegrationTest()
  • Method Details

    • setup

      public void setup()
      Initial setup of data for the test case
    • getTravelRoutesTest

      public void getTravelRoutesTest()
      Test case to test a valid scenario where a List of TravelRoutes are returned based on the Origin and Destination TransportFacility provided. This test case should return a list of TravelRouteModel models with 2 elements.
    • noTravelRoutesTest

      public void noTravelRoutesTest()
      Test case to test a scenario where no TravelRoute is found. This test case should return an empty list.