Class DefaultTravelRouteDaoIntegrationTest

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

@IntegrationTest public class DefaultTravelRouteDaoIntegrationTest extends de.hybris.platform.servicelayer.ServicelayerTransactionalTest
Integration test to test the functionality of the TravelRoute Dao 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 for ambiguous route
    void
    Test case to get a particular route by the route code
    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 for exception when a route is not found
    void
    Test case to test a scenario where a TravelRoute based on the Origin and Destination can not be found in the database.
    void
    Test case to test a for instances where no Destination TransportFacilityModel is returned from the database.
    void
    Test case to test a for instances where no Origin TransportFacilityModel is returned from the database.
    void
    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

    • DefaultTravelRouteDaoIntegrationTest

      public DefaultTravelRouteDaoIntegrationTest()
  • Method Details

    • setup

      public void setup()
      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.
    • noRoutesFoundTest

      public void noRoutesFoundTest()
      Test case to test a scenario where a TravelRoute based on the Origin and Destination can not be found in the database. The test case should return an empty list.
    • nullOriginParameterTest

      public void nullOriginParameterTest()
      Test case to test a for instances where no Origin TransportFacilityModel is returned from the database. The test case should fail with an IllegalArgumentException.
    • nullDestinationParameterTest

      public void nullDestinationParameterTest()
      Test case to test a for instances where no Destination TransportFacilityModel is returned from the database. The test case should fail with an IllegalArgumentException.
    • findRouteByCodeTest

      public void findRouteByCodeTest()
      Test case to get a particular route by the route code
    • noRouteFoundTest

      public void noRouteFoundTest()
      Test case to test for exception when a route is not found
    • ambiguousRouteTest

      public void ambiguousRouteTest()
      Test case to test for ambiguous route