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
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest case to test for ambiguous routevoidTest case to get a particular route by the route codevoidTest case to test a valid scenario where a List of TravelRoutes are returned based on the Origin and Destination TransportFacility provided.voidTest case to test for exception when a route is not foundvoidTest case to test a scenario where a TravelRoute based on the Origin and Destination can not be found in the database.voidTest case to test a for instances where no Destination TransportFacilityModel is returned from the database.voidTest case to test a for instances where no Origin TransportFacilityModel is returned from the database.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
-
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
-