@Test public void testException() { result = geocoder.getLocation(list, 50, null); Assert.assertTrue(null == result || 0 == result.length); }
@Override public GetLocationResult[] getLocation(List<String> location, int maxAlternatives, Locale locale) { try { String query = splitCommaReverseService.combine(location); List<GetLocationResult> locations = search(query, maxAlternatives, locale); return locations.toArray(new GetLocationResult[locations.size()]); } catch (Exception ex) { log.error("Search failed", ex); return null; } }
YahooPlaceFinderGeocoderService implements GeocoderService { @Override public GetLocationResult[] getLocation(List<String> location, int maxAlternatives, Locale locale) { try { String query = splitCommaReverseService.combine(location); List<GetLocationResult> locations = search(query, maxAlternatives, locale); return locations.toArray(new GetLocationResult[locations.size()]); } catch (Exception ex) { log.error("Search failed", ex); return null; } } }
YahooPlaceFinderGeocoderService implements GeocoderService { @Override public GetLocationResult[] getLocation(List<String> location, int maxAlternatives, Locale locale) { try { String query = splitCommaReverseService.combine(location); List<GetLocationResult> locations = search(query, maxAlternatives, locale); return locations.toArray(new GetLocationResult[locations.size()]); } catch (Exception ex) { log.error("Search failed", ex); return null; } }  }
YahooPlaceFinderGeocoderService implements GeocoderService { @Override public GetLocationResult[] getLocation(List<String> location, int maxAlternatives, Locale locale) { try { String query = splitCommaReverseService.combine(location); List<GetLocationResult> locations = search(query, maxAlternatives, locale); return locations.toArray(new GetLocationResult[locations.size()]); } catch (Exception ex) { log.error("Search failed", ex); return null; } }  @Override String getName(); @Api void setName(String name); @Api void setAppId(String appId); @Api void setAppIdProperty(String appIdProperty); @Api void setSkipAppIdCheck(boolean skipAppIdCheck); @Override CoordinateReferenceSystem getCrs(); @Override GetLocationResult[] getLocation(List<String> location,
			int maxAlternatives, Locale locale); List<GetLocationResult> search(String q, int maxRows, Locale locale); }
YahooPlaceFinderGeocoderService implements GeocoderService { @Override public GetLocationResult[] getLocation(List<String> location, int maxAlternatives, Locale locale) { try { String query = splitCommaReverseService.combine(location); List<GetLocationResult> locations = search(query, maxAlternatives, locale); return locations.toArray(new GetLocationResult[locations.size()]); } catch (Exception ex) { log.error("Search failed", ex); return null; } }  @Override String getName(); @Api void setName(String name); @Api void setAppId(String appId); @Api void setAppIdProperty(String appIdProperty); @Api void setSkipAppIdCheck(boolean skipAppIdCheck); @Override CoordinateReferenceSystem getCrs(); @Override GetLocationResult[] getLocation(List<String> location,
			int maxAlternatives, Locale locale); List<GetLocationResult> search(String q, int maxRows, Locale locale);  }