@Test public void renderHTML() throws Exception { IconSet iconSet = new IconSet("silk"); iconSet.addIcon("test", new Icon("hello")); when(iconSetManager.getCurrentIconSet()).thenReturn(iconSet); when(iconSetManager.getIconSet("silk")).thenReturn(iconSet); when(iconRenderer.renderHTML("test", iconSet)).thenReturn("rendered icon"); String result = iconManager.renderHTML("test"); assertEquals("rendered icon", result); }
@Override public String renderHTML(String iconName) throws IconException { return iconRenderer.renderHTML(iconName, getIconSet(iconName)); }
DefaultIconManager implements IconManager { @Override public String renderHTML(String iconName) throws IconException { return iconRenderer.renderHTML(iconName, getIconSet(iconName)); } }
DefaultIconManager implements IconManager { @Override public String renderHTML(String iconName) throws IconException { return iconRenderer.renderHTML(iconName, getIconSet(iconName)); }  }
DefaultIconManager implements IconManager { @Override public String renderHTML(String iconName) throws IconException { return iconRenderer.renderHTML(iconName, getIconSet(iconName)); }  @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 String renderHTML(String iconName) throws IconException { return iconRenderer.renderHTML(iconName, getIconSet(iconName)); }  @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);  }