@Test public void getHtml() throws IOException { when(markdownProcessor.markdownToHtml(MARKDOWN, PROJECT, BRANCH, PAGE_PATH, authentication, Locale.US, CONTEXT)) .thenReturn(HTML); String result = pageRenderer.getHtml(PROJECT, BRANCH, PAGE_PATH, authentication, Locale.US, CONTEXT); assertEquals(HTML, result); }
@Override public String getHtml(String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) throws IOException { if (log.isInfoEnabled()) { log.info("rendering page {}/{}/{} for user {}", projectName, branchName, Util.toUrlPagePath(path), authentication.getName()); } Page page = pageStore.getPage(projectName, branchName, path, true); String markdown = ((PageTextData) page.getData()).getText(); return markdownProcessor.markdownToHtml(markdown, projectName, branchName, path, authentication, locale, contextPath); }
PageRenderer implements IPageRenderer { @Override public String getHtml(String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) throws IOException { if (log.isInfoEnabled()) { log.info("rendering page {}/{}/{} for user {}", projectName, branchName, Util.toUrlPagePath(path), authentication.getName()); } Page page = pageStore.getPage(projectName, branchName, path, true); String markdown = ((PageTextData) page.getData()).getText(); return markdownProcessor.markdownToHtml(markdown, projectName, branchName, path, authentication, locale, contextPath); } }
PageRenderer implements IPageRenderer { @Override public String getHtml(String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) throws IOException { if (log.isInfoEnabled()) { log.info("rendering page {}/{}/{} for user {}", projectName, branchName, Util.toUrlPagePath(path), authentication.getName()); } Page page = pageStore.getPage(projectName, branchName, path, true); String markdown = ((PageTextData) page.getData()).getText(); return markdownProcessor.markdownToHtml(markdown, projectName, branchName, path, authentication, locale, contextPath); }  }
PageRenderer implements IPageRenderer { @Override public String getHtml(String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) throws IOException { if (log.isInfoEnabled()) { log.info("rendering page {}/{}/{} for user {}", projectName, branchName, Util.toUrlPagePath(path), authentication.getName()); } Page page = pageStore.getPage(projectName, branchName, path, true); String markdown = ((PageTextData) page.getData()).getText(); return markdownProcessor.markdownToHtml(markdown, projectName, branchName, path, authentication, locale, contextPath); }  @Override String getHtml(String projectName, String branchName, String path, Authentication authentication, Locale locale,
			String contextPath); @Override String getHeaderHtml(String projectName, String branchName, String path, Authentication authentication, Locale locale,
			String contextPath); }
PageRenderer implements IPageRenderer { @Override public String getHtml(String projectName, String branchName, String path, Authentication authentication, Locale locale, String contextPath) throws IOException { if (log.isInfoEnabled()) { log.info("rendering page {}/{}/{} for user {}", projectName, branchName, Util.toUrlPagePath(path), authentication.getName()); } Page page = pageStore.getPage(projectName, branchName, path, true); String markdown = ((PageTextData) page.getData()).getText(); return markdownProcessor.markdownToHtml(markdown, projectName, branchName, path, authentication, locale, contextPath); }  @Override String getHtml(String projectName, String branchName, String path, Authentication authentication, Locale locale,
			String contextPath); @Override String getHeaderHtml(String projectName, String branchName, String path, Authentication authentication, Locale locale,
			String contextPath);  }