Class DefaultTransportFacilityDaoIntegrationTest

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

@IntegrationTest public class DefaultTransportFacilityDaoIntegrationTest extends de.hybris.platform.servicelayer.ServicelayerTransactionalTest
Integration test to test the functionality of the TransportFacility 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 a valid set of data.
    void
    Test case to test a for instances where a transport facility for a given code can not be found.
    void
    Test case to test a for instances where a null object is passed to the TransportFacilityDao.findTravelRoutes() method.
    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

    • DefaultTransportFacilityDaoIntegrationTest

      public DefaultTransportFacilityDaoIntegrationTest()
  • Method Details

    • setup

      public void setup()
      Setup of data for the test case
    • getTransportFacilityTest

      public void getTransportFacilityTest()
      Test case to test a valid set of data. This test case should return a model with the code 'LON'
    • noTransportFacilityFoundTest

      public void noTransportFacilityFoundTest()
      Test case to test a for instances where a transport facility for a given code can not be found. This test case should return null.
    • nullCodeParameterTest

      public void nullCodeParameterTest()
      Test case to test a for instances where a null object is passed to the TransportFacilityDao.findTravelRoutes() method. This test case should thrown an IllegalArgumentException exception after failing the validateParameterNotNull in the TransportFacilityDao.findTravelRoutes() method.