SeasonManager extends Observable { public String getIconStyle(SeasonName season, Boolean large) { if (!large) { switch (season) { case SUMMER: return "seasonSummer"; case AUTUMN: return "seasonAutumn"; case WINTER: return "seasonWinter"; case SPRING: return "seasonSpring"; } } else { switch (season) { case SUMMER: return "forecastSummer"; case AUTUMN: return "forecastAutumn"; case WINTER: return "forecastWinter"; case SPRING: return "forecastSpring"; } } return null; } SeasonManager(); void seasonStart(); String getSeason(); Season getSeasonObject(); void seasonSwitch(SeasonName season); void seasonSwitch(); String getIconStyle(SeasonName season, Boolean large); String getIconPath(); int getSeasonEndDay(); void registerMonthlyTask();  }
@Test public void testGetIconStyle() { SeasonManager manager = new SeasonManager(); for (SeasonName n : SeasonName.values()) { Assert.assertTrue(manager.getIconStyle(n, true).equals( "forecast" + n.toString().charAt(0) + n.toString().substring(1).toLowerCase())); Assert.assertTrue(manager.getIconStyle(n, false).equals( "season" + n.toString().charAt(0) + n.toString().substring(1).toLowerCase())); } }