@Test public void getHtml() { when(context.getMacroName()).thenReturn("nonexistent"); assertEquals("<span class=\"text-error\">{{nonexistent/}}</span>", runnable.getHtml(context)); }
@Override public String getHtml(IMacroContext macroContext) { return "<span class=\"text-error\">{{" + macroContext.getMacroName() + "/}}</span>"; }
UnknownMacroMacroRunnable implements IMacroRunnable { @Override public String getHtml(IMacroContext macroContext) { return "<span class=\"text-error\">{{" + macroContext.getMacroName() + "/}}</span>"; } }
UnknownMacroMacroRunnable implements IMacroRunnable { @Override public String getHtml(IMacroContext macroContext) { return "<span class=\"text-error\">{{" + macroContext.getMacroName() + "/}}</span>"; }  }
UnknownMacroMacroRunnable implements IMacroRunnable { @Override public String getHtml(IMacroContext macroContext) { return "<span class=\"text-error\">{{" + macroContext.getMacroName() + "/}}</span>"; }  @Override String getHtml(IMacroContext macroContext); @Override String cleanupHtml(String html); }
UnknownMacroMacroRunnable implements IMacroRunnable { @Override public String getHtml(IMacroContext macroContext) { return "<span class=\"text-error\">{{" + macroContext.getMacroName() + "/}}</span>"; }  @Override String getHtml(IMacroContext macroContext); @Override String cleanupHtml(String html);  }