Class MockApiService
java.lang.Object
org.apache.camel.quarkus.component.geocoder.it.MockApiService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.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)
-
Constructor Details
-
MockApiService
public MockApiService()
-
-
Method Details
-
createGeoApiContext
public com.google.maps.GeoApiContext createGeoApiContext(String baseUri, String apiKey) throws IllegalAccessException, InstantiationException, NoSuchFieldException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException -
createGeoApiContext
public com.google.maps.GeoApiContext.Builder createGeoApiContext(String baseUrl) throws IllegalAccessException, InstantiationException, NoSuchFieldException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException Creates a Builder and sets a new baseUrl for mock with reflection, because it is impossible to set it differently!- Parameters:
baseUrl-- Returns:
- Throws:
IllegalAccessExceptionInstantiationExceptionNoSuchFieldExceptionSecurityExceptionNoSuchMethodExceptionInvocationTargetExceptionIllegalArgumentException
-