WeatherManager extends Observable { public WeatherType getWeather() { return currentWeather.weatherType(); } WeatherManager();  WeatherManager(String saveData); boolean switchWeather(WeatherType nextWeather); boolean switchWeather(WeatherType nextWeather,
            List<String> settings); WeatherType getWeather(); String getWeatherName(); Map<String, Integer> getWeatherComponents(); void nextWeatherFromQueue(); void buildQueue(); void updateForecast(); List<WeatherQueue.Element> getForecast(); void hourTick(); int getTotalHours(); String getWeatherIconStyle(WeatherType weather); String getForecastIconStyle(WeatherType weather); String getIconPath(); void registerHourlyTask(); static final int WEATHER_LOADED; static final int WEATHER_ERROR_DNE; static final int WEATHER_ERROR_SETTINGS; }
@Test public void testGetWeather() { WeatherManager manager = new WeatherManager("Some Settings"); Assert.assertEquals(WeatherType.DEFAULT, manager.getWeather()); manager.switchWeather(WeatherType.SUNNY); Assert.assertEquals(WeatherType.SUNNY, manager.getWeather()); }