@Test public void testForecastGetCloudiness() throws Exception { OpenWeatherMapWeather weather = WeatherUtils.createOpenWeather(context); List<SimpleWeatherCondition> conditions = weather.getOpenWeatherMapConditions(); assertEquals(8, conditions.size()); assertEquals(46, conditions.get(0).getCloudiness().getValue()); assertEquals(46, conditions.get(1).getCloudiness().getValue()); assertEquals(25, conditions.get(2).getCloudiness().getValue()); assertEquals(65, conditions.get(3).getCloudiness().getValue()); assertEquals(24, conditions.get(4).getCloudiness().getValue()); assertEquals(3, conditions.get(5).getCloudiness().getValue()); assertEquals(17, conditions.get(6).getCloudiness().getValue()); assertEquals(22, conditions.get(7).getCloudiness().getValue()); }
List<SimpleWeatherCondition> getOpenWeatherMapConditions() { return this.conditions; }
OpenWeatherMapWeather implements Weather { List<SimpleWeatherCondition> getOpenWeatherMapConditions() { return this.conditions; } }
OpenWeatherMapWeather implements Weather { List<SimpleWeatherCondition> getOpenWeatherMapConditions() { return this.conditions; } OpenWeatherMapWeather(Context context);  OpenWeatherMapWeather(Context context, JSONObject jsonObject); }
OpenWeatherMapWeather implements Weather { List<SimpleWeatherCondition> getOpenWeatherMapConditions() { return this.conditions; } 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 { List<SimpleWeatherCondition> getOpenWeatherMapConditions() { return this.conditions; } 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();  }