Package de.hybris.platform.storelocator
Class GeocodingTest
- java.lang.Object
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class GeocodingTest extends AbstractGeocodingTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.basecommerce.util.BaseCommerceBaseTest
flexibleSearchService
-
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 GeocodingTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testGetDistanceAndRoute1()
Tests IGeoWebServiceWrapper, which returns a route for a well defined inputs: Address and Addressvoid
testGetDistanceAndRoute2()
Tests IGeoWebServiceWrapper, which returns a route for a well defined inputs: GPS and Addressvoid
testGetMapFromManagerPOIs()
Test - getMap(IGPS, radius, addresses) returns a map centered on the point given and covering the radius specified, and listing the addresses givenvoid
testGetMapFromManagerRoute()
Test - getMap(..) return a map with the route shown between the two pointsvoid
testLocationDTO()
Tests instantiation ofLocation
by means ofLocationDTO
object.void
testLocationModel()
Tests instantiation ofLocation
by means ofPointOfServiceModel
object.void
testRouteInstantiation()
Test comunication with Google API - getting route between 2 point and distance info.-
Methods inherited from class de.hybris.platform.storelocator.AbstractGeocodingTest
createAndStoreTestLocation, createTestCronJob, createTestCronJob, createTestLocation, createTestPosEntries, getCommonI18NService, getCronJobService, getGeocodeAddressesJob, getGeoServiceWrapper, getLocationService, getMapService, getModelService, getPointOfServiceDao, getRouteService, setCommonI18NService, setCronJobService, setGeocodeAddressesJob, setGeoServiceWrapper, setLocationService, setMapService, setModelService, setPointOfServiceDao, setRouteService
-
Methods inherited from class de.hybris.platform.basecommerce.util.BaseCommerceBaseTest
getFlexibleSearchService, getOrderForCode, getProcesses, initMocks, setFlexibleSearchService, waitForProcessToEnd
-
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
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLocationDTO
public void testLocationDTO() throws java.lang.Exception
Tests instantiation ofLocation
by means ofLocationDTO
object. Verifies location service operation against this location as well as proper geocoding of it's address data.- Throws:
java.lang.Exception
-
testLocationModel
public void testLocationModel() throws java.lang.Exception
Tests instantiation ofLocation
by means ofPointOfServiceModel
object. Verifies location service operation against this location as well as proper geocoding of it's address data.- Throws:
java.lang.Exception
-
testGetMapFromManagerPOIs
public void testGetMapFromManagerPOIs() throws java.lang.Exception
Test - getMap(IGPS, radius, addresses) returns a map centered on the point given and covering the radius specified, and listing the addresses given- Throws:
java.lang.Exception
-
testGetMapFromManagerRoute
public void testGetMapFromManagerRoute() throws java.lang.Exception
Test - getMap(..) return a map with the route shown between the two points- Throws:
java.lang.Exception
-
testRouteInstantiation
public void testRouteInstantiation() throws java.lang.Exception
Test comunication with Google API - getting route between 2 point and distance info.- Throws:
java.lang.Exception
-
testGetDistanceAndRoute1
public void testGetDistanceAndRoute1() throws java.lang.Exception
Tests IGeoWebServiceWrapper, which returns a route for a well defined inputs: Address and Address- Throws:
java.lang.Exception
-
testGetDistanceAndRoute2
public void testGetDistanceAndRoute2() throws java.lang.Exception
Tests IGeoWebServiceWrapper, which returns a route for a well defined inputs: GPS and Address- Throws:
java.lang.Exception
-
-