RepositoryConfiguration { public void setRepositoryUrl(String repositoryUrl) { Validate.notEmpty(repositoryUrl, "Repository URL cannot be empty"); repositoryUrl = repositoryUrl.trim(); if (repositoryUrl.endsWith("/")) { repositoryUrl = repositoryUrl.substring(0, repositoryUrl.length() - 1); } this.repositoryUrl = repositoryUrl; try { svnUrl = SVNURL.parse(this.repositoryUrl); } catch (final SventonException ex) { logger.warn("Unable to parse URL [" + repositoryUrl + "]", ex); } } RepositoryConfiguration(final String repositoryName); static RepositoryConfiguration create(final String repositoryName, final Properties properties); Properties getAsProperties(); Credentials getUserCredentials(); void setUserCredentials(final Credentials userCredentials); Credentials getCacheCredentials(); void setCacheCredentials(final Credentials cacheCredentials); String getRepositoryUrl(); void setRepositoryUrl(String repositoryUrl); void setRepositoryDisplayUrl(final String repositoryDisplayUrl); String getRepositoryDisplayUrl(); SVNURL getSVNURL(); void setCacheUsed(final boolean useCache); boolean isCacheUsed(); boolean isAccessControlEnabled(); boolean isEntryTrayEnabled(); void setEnableEntryTray(final boolean enableEntryTray); void setEnableAccessControl(final boolean enableAccessControl); void setZippedDownloadsAllowed(final boolean zipDownloadsAllowed); boolean isZippedDownloadsAllowed(); int getRssItemsCount(); RepositoryName getName(); boolean isIssueTrackerIntegrationEnabled(); void setEnableIssueTrackerIntegration(final boolean enableIssueTrackerIntegration); void setRssTemplateFile(final String rssTemplateFile); void setMailTemplateFile(final String mailTemplateFile); String getRssTemplateFile(); String getMailTemplateFile(); String getRssTemplate(); String getMailTemplate(); void setPersisted(); boolean isPersisted(); @Override String toString(); static final int DEFAULT_RSS_ITEMS_COUNT; static final String DEFAULT_RSS_TEMPLATE_FILE; static final String DEFAULT_MAIL_TEMPLATE_FILE; static final String PROPERTY_KEY_REPOSITORY_URL; static final String PROPERTY_KEY_REPOSITORY_DISPLAY_URL; static final String PROPERTY_KEY_USER_NAME; static final String PROPERTY_KEY_USER_PASSWORD; static final String PROPERTY_KEY_USE_CACHE; static final String PROPERTY_KEY_CACHE_USER_NAME; static final String PROPERTY_KEY_CACHE_USER_PASSWORD; static final String PROPERTY_KEY_ALLOW_ZIP_DOWNLOADS; static final String PROPERTY_KEY_ENABLE_ACCESS_CONTROL; static final String PROPERTY_KEY_ENABLE_ISSUE_TRACKER_INTEGRATION; static final String PROPERTY_KEY_RSS_ITEMS_COUNT; static final String PROPERTY_KEY_RSS_TEMPLATE_FILE; static final String PROPERTY_KEY_MAIL_TEMPLATE_FILE; static final String PROPERTY_KEY_ENABLE_ENTRY_TRAY; }
@Test public void testSetRepositoryUrl() throws Exception { RepositoryConfiguration conf = new RepositoryConfiguration("test"); conf.setRepositoryUrl("svn: assertEquals("svn: assertEquals(SVNURL.parse("svn: conf.setRepositoryUrl("svn: assertEquals("svn: assertEquals(SVNURL.parse("svn: conf.setRepositoryUrl("svn: assertEquals("svn: assertEquals(SVNURL.parse("svn: conf.setRepositoryUrl("svn: assertEquals("svn: assertEquals(SVNURL.parse("svn: }