/** * Copyright (C) 2011 Brian Ferris <bdferris@onebusaway.org> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.onebusaway.geocoder.impl; import org.junit.Test; public class YahooGeocoderImplTest { @Test public void testGeocoder() { // YahooGeocoderImpl geocoder = new YahooGeocoderImpl(); // geocoder.setAppId("YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--"); // // GeocoderResults results = geocoder.geocode("98105"); // // List<GeocoderResult> records = results.getResults(); // // assertEquals(1, records.size()); // // GeocoderResult result = records.get(0); // // assertEquals(47.663355, result.getLatitude(), 0.001); // assertEquals(-122.298259, result.getLongitude(), 0.001); // assertEquals("",result.getAddress()); // assertEquals("Seattle", result.getCity()); // assertEquals("WA", result.getAdministrativeArea()); // assertEquals("98105", result.getPostalCode()); // assertEquals("US", result.getCountry()); } }