@Test public void testGetTime() throws Exception { OpenWeatherMapWeather weather = WeatherUtils.createIncompleteOpenWeather(context); Date time = weather.getTime(); assertNotNull(time); Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC")); calendar.set(2020, Calendar.JUNE, 5, 17, 30, 5); calendar.set(Calendar.MILLISECOND, 0); assertEquals(calendar.getTime(), time); }
@Override public Date getTime() { return new Date(this.time.getTime()); }
OpenWeatherMapWeather implements Weather { @Override public Date getTime() { return new Date(this.time.getTime()); } }
OpenWeatherMapWeather implements Weather { @Override public Date getTime() { return new Date(this.time.getTime()); } OpenWeatherMapWeather(Context context);  OpenWeatherMapWeather(Context context, JSONObject jsonObject); }
OpenWeatherMapWeather implements Weather { @Override public Date getTime() { return new Date(this.time.getTime()); } 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 Date getTime() { return new Date(this.time.getTime()); } 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();  }