@Test(enabled = false) public void testConnection() { RepositoryConfiguration reposConfig = confRepos.getRepositoryConfiguration(confRepos.getNames()[0]); assertNotNull(reposConfig, "We had expected to get a configuration for a single repository."); Repository repository = RepositoryFactory.createInstance(reposConfig); assertEquals(repository.validConnection(), true, "We have expected to get an connection"); }
public boolean validConnection() { LOGGER.debug("Trying to make a connection to the repository."); try { repository.testConnection(); setUuid(repository.getRepositoryUUID(false)); } catch (SVNException e) { LOGGER.error( "Connection to the repository has failed. URL or username/password is not correct. ", e); return false; } LOGGER.info("Successfull connection made to the repository."); return true; }
Repository { public boolean validConnection() { LOGGER.debug("Trying to make a connection to the repository."); try { repository.testConnection(); setUuid(repository.getRepositoryUUID(false)); } catch (SVNException e) { LOGGER.error( "Connection to the repository has failed. URL or username/password is not correct. ", e); return false; } LOGGER.info("Successfull connection made to the repository."); return true; } }
Repository { public boolean validConnection() { LOGGER.debug("Trying to make a connection to the repository."); try { repository.testConnection(); setUuid(repository.getRepositoryUUID(false)); } catch (SVNException e) { LOGGER.error( "Connection to the repository has failed. URL or username/password is not correct. ", e); return false; } LOGGER.info("Successfull connection made to the repository."); return true; } Repository(String url, ISVNAuthenticationManager authManager); }
Repository { public boolean validConnection() { LOGGER.debug("Trying to make a connection to the repository."); try { repository.testConnection(); setUuid(repository.getRepositoryUUID(false)); } catch (SVNException e) { LOGGER.error( "Connection to the repository has failed. URL or username/password is not correct. ", e); return false; } LOGGER.info("Successfull connection made to the repository."); return true; } Repository(String url, ISVNAuthenticationManager authManager); boolean validConnection(); void close(); void setAuthenticationManager(ISVNAuthenticationManager authManager); String getUrl(); void setUrl(String url); SVNRepository getRepository(); void setRepository(SVNRepository repository); ISVNAuthenticationManager getAuthManager(); String getUuid(); void setUuid(String uuid); }
Repository { public boolean validConnection() { LOGGER.debug("Trying to make a connection to the repository."); try { repository.testConnection(); setUuid(repository.getRepositoryUUID(false)); } catch (SVNException e) { LOGGER.error( "Connection to the repository has failed. URL or username/password is not correct. ", e); return false; } LOGGER.info("Successfull connection made to the repository."); return true; } Repository(String url, ISVNAuthenticationManager authManager); boolean validConnection(); void close(); void setAuthenticationManager(ISVNAuthenticationManager authManager); String getUrl(); void setUrl(String url); SVNRepository getRepository(); void setRepository(SVNRepository repository); ISVNAuthenticationManager getAuthManager(); String getUuid(); void setUuid(String uuid);  }