Class MockApiService
- java.lang.Object
-
- org.apache.camel.quarkus.component.geocoder.it.MockApiService
-
@ApplicationScoped public class MockApiService extends Object
-
-
Constructor Summary
Constructors Constructor Description MockApiService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.maps.GeoApiContext.BuildercreateGeoApiContext(String baseUrl)Creates a Builder and sets a new baseUrl for mock with reflection, because it is impossible to set it differently!com.google.maps.GeoApiContextcreateGeoApiContext(String baseUri, String apiKey)
-
-
-
Method Detail
-
createGeoApiContext
public com.google.maps.GeoApiContext createGeoApiContext(String baseUri, String apiKey) throws IllegalAccessException, InstantiationException, NoSuchFieldException
-
createGeoApiContext
public com.google.maps.GeoApiContext.Builder createGeoApiContext(String baseUrl) throws IllegalAccessException, InstantiationException, NoSuchFieldException
Creates a Builder and sets a new baseUrl for mock with reflection, because it is impossible to set it differently!- Parameters:
baseUrl-- Returns:
- Throws:
IllegalAccessExceptionInstantiationExceptionNoSuchFieldException
-
-