HTMLCreator { protected static String createDiffUrl(final String baseURL, final String path, final long revision, final RepositoryName repositoryName, final boolean linkToHead) { final String entry1 = path + "@" + revision; final String entry2 = path + "@" + (revision - 1); final StringBuilder sb = new StringBuilder(baseURL).append("repos/"); sb.append(encodeUrl(repositoryName.toString() + "/diff" + path)); sb.append("?revision=").append(linkToHead ? "HEAD" : revision); sb.append("&entries=").append(entry1); sb.append("&entries=").append(entry2); return sb.toString(); } private  HTMLCreator(); static String createRevisionDetailBody(final String bodyTemplate, final LogEntry logEntry, final String baseURL,
                                                final RepositoryName repositoryName, final DateFormat dateFormat,
                                                final HttpServletResponse response); static String createChangedPathsTable(final SortedSet<ChangedPath> changedPaths, final long revision,
                                               final String pathAtRevision, final String baseURL,
                                               final RepositoryName repositoryName, final boolean showLatestRevInfo,
                                               final boolean linkToHead, final HttpServletResponse response); static final String LOG_MESSAGE_KEY; static final String AUTHOR_KEY; static final String DATE_KEY; static final String ADDED_COUNT_KEY; static final String MODIFIED_COUNT_KEY; static final String REPLACED_COUNT_KEY; static final String DELETED_COUNT_KEY; static final String CHANGED_PATHS_KEY; }
@Test public void testCreateDiffUrl() throws Exception { assertEquals("http: HTMLCreator.createDiffUrl("http: assertEquals("http: HTMLCreator.createDiffUrl("http: }