aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2011-03-27 22:42:57 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2011-03-28 07:41:48 +0200
commitd1718a34d3f2c258a166b563c477b268ac8002ed (patch)
tree4fbb817a016467b529db00dc99dba7c6932b97a2 /org.eclipse.jgit.test
parent73602c448cde4e69ca59476d2b1c49ef91367591 (diff)
downloadjgit-d1718a34d3f2c258a166b563c477b268ac8002ed.tar.gz
jgit-d1718a34d3f2c258a166b563c477b268ac8002ed.zip
Do not normalize URIishes
We used to normalize URI's since it seems simple. This however causes inconsistencies to the user and to out tests. Just pass backslashes through and make sure our parser can handle them. Bug: 341062 Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com> Change-Id: I2c8e917a086faabcd8749160c2acc9dd05a42838
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java
index edcab8a92d..c86869d088 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java
@@ -90,8 +90,8 @@ public class URIishTest {
URIish u = new URIish(str);
assertNull(u.getScheme());
assertFalse(u.isRemote());
- assertEquals("D:/m y", u.getPath());
- assertEquals("D:/m y", u.toString());
+ assertEquals("D:\\m y", u.getPath());
+ assertEquals("D:\\m y", u.toString());
assertEquals(u, new URIish(str));
}
@@ -112,8 +112,8 @@ public class URIishTest {
URIish u = new URIish(str);
assertNull(u.getScheme());
assertFalse(u.isRemote());
- assertEquals("//some/place", u.getPath());
- assertEquals("//some/place", u.toString());
+ assertEquals("\\\\some\\place", u.getPath());
+ assertEquals("\\\\some\\place", u.toString());
assertEquals(u, new URIish(str));
}