SVNURL implements Serializable { public static SVNURL parse(final String url) throws SventonException { try { final String encodedUri = UriUtils.encodeUri(url, "UTF-8"); validate(encodedUri); return new SVNURL(trim(encodedUri)); } catch (UnsupportedEncodingException e) { throw new SventonException("Could not encode URI " + url, e); } } SVNURL(String url); String getUrl(); String getFullPath(final String relativePath); static SVNURL parse(final String url); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void parseSpacesAndNonAscii() throws Exception { assertEquals("http: SVNURL.parse("http: }
@Test public void validProtocols() throws Exception { SVNURL.parse("http: SVNURL.parse("https:/foo/bar"); SVNURL.parse("svn: SVNURL.parse("svn+ssh: SVNURL.parse("file: }
@Test public void unknownProtocol() throws Exception { try { SVNURL.parse("ftp: fail("Unknown subversion protocol should throw SventonException"); } catch (SventonException e) { } }