@Test public void renderCount() { String renderedCount = this.notificationRenderer.render(42); assertEquals("<span class=\"notifications-count badge\">42</span>", renderedCount); }
public String render(int count) { String displayCount = String.valueOf(count); FormatBlock formatBlock = new FormatBlock(); WordBlock wordBlock = new WordBlock(displayCount); formatBlock.addChild(wordBlock); formatBlock.setParameter(CLASS_PARAMETER, "notifications-count badge"); WikiPrinter printer = new DefaultWikiPrinter(); this.htmlRenderer.render(formatBlock, printer); return printer.toString(); }
InternalHtmlNotificationRenderer { public String render(int count) { String displayCount = String.valueOf(count); FormatBlock formatBlock = new FormatBlock(); WordBlock wordBlock = new WordBlock(displayCount); formatBlock.addChild(wordBlock); formatBlock.setParameter(CLASS_PARAMETER, "notifications-count badge"); WikiPrinter printer = new DefaultWikiPrinter(); this.htmlRenderer.render(formatBlock, printer); return printer.toString(); } }
InternalHtmlNotificationRenderer { public String render(int count) { String displayCount = String.valueOf(count); FormatBlock formatBlock = new FormatBlock(); WordBlock wordBlock = new WordBlock(displayCount); formatBlock.addChild(wordBlock); formatBlock.setParameter(CLASS_PARAMETER, "notifications-count badge"); WikiPrinter printer = new DefaultWikiPrinter(); this.htmlRenderer.render(formatBlock, printer); return printer.toString(); }  }
InternalHtmlNotificationRenderer { public String render(int count) { String displayCount = String.valueOf(count); FormatBlock formatBlock = new FormatBlock(); WordBlock wordBlock = new WordBlock(displayCount); formatBlock.addChild(wordBlock); formatBlock.setParameter(CLASS_PARAMETER, "notifications-count badge"); WikiPrinter printer = new DefaultWikiPrinter(); this.htmlRenderer.render(formatBlock, printer); return printer.toString(); }  String render(int count); String render(CompositeEvent compositeEvent, CompositeEventStatus status); String render(List<CompositeEvent> compositeEvents, List<CompositeEventStatus> compositeEventStatuses,
        boolean loadMore); }
InternalHtmlNotificationRenderer { public String render(int count) { String displayCount = String.valueOf(count); FormatBlock formatBlock = new FormatBlock(); WordBlock wordBlock = new WordBlock(displayCount); formatBlock.addChild(wordBlock); formatBlock.setParameter(CLASS_PARAMETER, "notifications-count badge"); WikiPrinter printer = new DefaultWikiPrinter(); this.htmlRenderer.render(formatBlock, printer); return printer.toString(); }  String render(int count); String render(CompositeEvent compositeEvent, CompositeEventStatus status); String render(List<CompositeEvent> compositeEvents, List<CompositeEventStatus> compositeEventStatuses,
        boolean loadMore);  }