@Test public void getIconNames() throws Exception { IconSet iconSet = new IconSet("iconSet1"); iconSet.addIcon("icon1", new Icon("icon1 value")); iconSet.addIcon("icon2", new Icon("icon2 value")); when(iconSetManager.getCurrentIconSet()).thenReturn(iconSet); when(iconSetManager.getIconSet("iconSet1")).thenReturn(iconSet); List<String> results = iconManager.getIconNames(); List<String> results2 = iconManager.getIconNames("iconSet1"); assertEquals(2, results.size()); assertTrue(results.contains("icon1")); assertTrue(results.contains("icon2")); assertEquals(2, results2.size()); assertTrue(results2.contains("icon1")); assertTrue(results2.contains("icon2")); }
@Override public List<String> getIconNames() throws IconException { return iconSetManager.getCurrentIconSet().getIconNames(); }
DefaultIconManager implements IconManager { @Override public List<String> getIconNames() throws IconException { return iconSetManager.getCurrentIconSet().getIconNames(); } }
DefaultIconManager implements IconManager { @Override public List<String> getIconNames() throws IconException { return iconSetManager.getCurrentIconSet().getIconNames(); }  }
DefaultIconManager implements IconManager { @Override public List<String> getIconNames() throws IconException { return iconSetManager.getCurrentIconSet().getIconNames(); }  @Override String render(String iconName); @Override String render(String iconName, String iconSetName); @Override String render(String iconName, String iconSetName, boolean fallback); @Override String renderHTML(String iconName); @Override String renderHTML(String iconName, String iconSetName); @Override String renderHTML(String iconName, String iconSetName, boolean fallback); @Override Map<String, Object> getMetaData(String iconName); @Override Map<String, Object> getMetaData(String iconName, String iconSetName); @Override Map<String, Object> getMetaData(String iconName, String iconSetName, boolean fallback); @Override List<String> getIconNames(); @Override List<String> getIconNames(String iconSetName); }
DefaultIconManager implements IconManager { @Override public List<String> getIconNames() throws IconException { return iconSetManager.getCurrentIconSet().getIconNames(); }  @Override String render(String iconName); @Override String render(String iconName, String iconSetName); @Override String render(String iconName, String iconSetName, boolean fallback); @Override String renderHTML(String iconName); @Override String renderHTML(String iconName, String iconSetName); @Override String renderHTML(String iconName, String iconSetName, boolean fallback); @Override Map<String, Object> getMetaData(String iconName); @Override Map<String, Object> getMetaData(String iconName, String iconSetName); @Override Map<String, Object> getMetaData(String iconName, String iconSetName, boolean fallback); @Override List<String> getIconNames(); @Override List<String> getIconNames(String iconSetName);  }