Mercurial > hg > mercurial
comparison mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/SettingsTest.java @ 322:6667765025c6
Merge branch Eluru-6.5.x
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Mon, 19 Sep 2011 12:02:37 +0400 |
parents | 33305b2022c2 568ce42b1e9d |
children | e5b15dc36e63 |
comparison
equal
deleted
inserted
replaced
321:0f5d1baa2e2c | 322:6667765025c6 |
---|---|
107 root.addProperty(Constants.UNCOMPRESSED_TRANSFER, "true"); | 107 root.addProperty(Constants.UNCOMPRESSED_TRANSFER, "true"); |
108 Settings settings = createSettings(root); | 108 Settings settings = createSettings(root); |
109 assertTrue(settings.isUncompressedTransfer()); | 109 assertTrue(settings.isUncompressedTransfer()); |
110 } | 110 } |
111 | 111 |
112 //TW-18262 | |
113 public void ampersand_in_password() { | |
114 VcsRootImpl vcsRoot = createVcsRoot("http://some.org/path", "user", "m&n"); | |
115 Settings settings = createSettings(vcsRoot); | |
116 assertEquals("http://user:m%26n@some.org/path", settings.getRepositoryUrl()); | |
117 } | |
118 | |
112 private VcsRootImpl createVcsRoot(String url) { | 119 private VcsRootImpl createVcsRoot(String url) { |
113 return createVcsRoot(url, "user", "pwd"); | 120 return createVcsRoot(url, "user", "pwd"); |
114 } | 121 } |
115 | 122 |
116 private VcsRootImpl createVcsRoot(String url, String userName, String password) { | 123 private VcsRootImpl createVcsRoot(String url, String userName, String password) { |