Mercurial > hg > mercurial
changeset 130:fc86dd075156
add test for TW-13768
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Thu, 14 Oct 2010 12:45:54 +0400 |
parents | 021589a73f03 |
children | d33529a2f6e9 |
files | mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/SettingsTest.java |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/SettingsTest.java Wed Oct 06 14:00:36 2010 +0400 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/SettingsTest.java Thu Oct 14 12:45:54 2010 +0400 @@ -57,6 +57,15 @@ assertEquals("http://my.name%40gmail.com:1234@host.com/path", settings.getRepositoryUrl()); } + /** + * TW-13768 + */ + public void test_url_without_host_error() { + VcsRootImpl vcsRoot = createVcsRoot("http://Klekovkin.SDK_GARANT:8000/", "my.name@gmail.com", "1234"); + Settings settings = new Settings(new File("."), vcsRoot); + assertEquals("http://Klekovkin.SDK_GARANT:8000/", settings.getRepositoryUrl()); + } + public void test_windows_path() throws Exception { VcsRootImpl vcsRoot = createVcsRoot("c:\\windows\\path"); Settings settings = new Settings(new File("."), vcsRoot);