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
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest case to test a valid set of data.voidTest case to test a for instances where a transport facility for a given code can not be found.voidTest case to test a for instances where a null object is passed to the TransportFacilityDao.findTravelRoutes() method.voidsetup()Setup of data for the test caseMethods 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
-
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.
-