Class GeocodingTest

    • Constructor Detail

      • GeocodingTest

        public GeocodingTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testLocationDTO

        public void testLocationDTO()
                             throws java.lang.Exception
        Tests instantiation of Location by means of LocationDTO 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 of Location by means of PointOfServiceModel 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