@Test public void testGetLocation() throws Exception { OpenWeatherMapWeather weather = WeatherUtils.createIncompleteOpenWeather(context); Location location = weather.getLocation(); assertNotNull(location); assertFalse(location.isEmpty()); assertEquals("Omsk", location.getText()); assertTrue(location.isGeo()); assertEquals("lat=55.0&lon=73.4", location.getQuery()); }
@Override public Location getLocation() { return this.location; }
OpenWeatherMapWeather implements Weather { @Override public Location getLocation() { return this.location; } }
OpenWeatherMapWeather implements Weather { @Override public Location getLocation() { return this.location; } OpenWeatherMapWeather(Context context);  OpenWeatherMapWeather(Context context, JSONObject jsonObject); }
OpenWeatherMapWeather implements Weather { @Override public Location getLocation() { return this.location; } OpenWeatherMapWeather(Context context);  OpenWeatherMapWeather(Context context, JSONObject jsonObject); @Override Location getLocation(); @Override Date getTime(); @Override Date getQueryTime(); @Override UnitSystem getUnitSystem(); @Override List<WeatherCondition> getConditions(); @Override boolean isEmpty(); int getCityId(); URL getForecastURL(); }
OpenWeatherMapWeather implements Weather { @Override public Location getLocation() { return this.location; } OpenWeatherMapWeather(Context context);  OpenWeatherMapWeather(Context context, JSONObject jsonObject); @Override Location getLocation(); @Override Date getTime(); @Override Date getQueryTime(); @Override UnitSystem getUnitSystem(); @Override List<WeatherCondition> getConditions(); @Override boolean isEmpty(); int getCityId(); URL getForecastURL();  }