@Test public void render() throws Exception { IconSet iconSet = new IconSet("default"); iconSet.setRenderWiki("image:$icon.png"); iconSet.addIcon("test", new Icon("blabla")); when(velocityRenderer.render("#set($icon = \"blabla\")\nimage:$icon.png")).thenReturn("image:blabla.png"); String result = iconRenderer.render("test", iconSet); assertEquals("image:blabla.png", result); verify(linkExtension, never()).use(any()); verify(skinExtension, never()).use(any()); verify(jsExtension, never()).use(any()); }
@Override public String render(String iconName, IconSet iconSet) throws IconException { return render(iconName, iconSet, iconSet.getRenderWiki()); }
DefaultIconRenderer implements IconRenderer { @Override public String render(String iconName, IconSet iconSet) throws IconException { return render(iconName, iconSet, iconSet.getRenderWiki()); } }
DefaultIconRenderer implements IconRenderer { @Override public String render(String iconName, IconSet iconSet) throws IconException { return render(iconName, iconSet, iconSet.getRenderWiki()); }  }
DefaultIconRenderer implements IconRenderer { @Override public String render(String iconName, IconSet iconSet) throws IconException { return render(iconName, iconSet, iconSet.getRenderWiki()); }  @Override String render(String iconName, IconSet iconSet); @Override String renderHTML(String iconName, IconSet iconSet); @Override String render(String iconName, IconSet iconSet, String renderer); @Override void use(IconSet iconSet); }
DefaultIconRenderer implements IconRenderer { @Override public String render(String iconName, IconSet iconSet) throws IconException { return render(iconName, iconSet, iconSet.getRenderWiki()); }  @Override String render(String iconName, IconSet iconSet); @Override String renderHTML(String iconName, IconSet iconSet); @Override String render(String iconName, IconSet iconSet, String renderer); @Override void use(IconSet iconSet);  }