summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.java7.test
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2013-07-10 17:33:50 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2014-02-10 23:29:25 +0100
commit1b5bb265dcf88141ef70822a673c948f93d31cd1 (patch)
treedffe8bd986cbd20e0928cbff75311c76a9cbe94d /org.eclipse.jgit.java7.test
parent7c19c4554466537d0c9e845e9ce99507a500aa87 (diff)
downloadjgit-1b5bb265dcf88141ef70822a673c948f93d31cd1.tar.gz
jgit-1b5bb265dcf88141ef70822a673c948f93d31cd1.zip
Length of symbolic link is the number of bytes, not characters
Change-Id: I6b615f0d5da4339f1f23a29bcaeb80f0346f5764
Diffstat (limited to 'org.eclipse.jgit.java7.test')
-rw-r--r--org.eclipse.jgit.java7.test/src/org/eclipse/jgit/util/FSJava7Test.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jgit.java7.test/src/org/eclipse/jgit/util/FSJava7Test.java b/org.eclipse.jgit.java7.test/src/org/eclipse/jgit/util/FSJava7Test.java
index 4b5fe5979e..70eaef231a 100644
--- a/org.eclipse.jgit.java7.test/src/org/eclipse/jgit/util/FSJava7Test.java
+++ b/org.eclipse.jgit.java7.test/src/org/eclipse/jgit/util/FSJava7Test.java
@@ -85,16 +85,16 @@ public class FSJava7Test {
@Test
public void testSymlinkAttributes() throws IOException, InterruptedException {
FS fs = FS.DETECTED;
- File link = new File(trash, "x");
- File target = new File(trash, "y");
- fs.createSymLink(link, "y");
+ File link = new File(trash, "ä");
+ File target = new File(trash, "å");
+ fs.createSymLink(link, "å");
assertTrue(fs.exists(link));
String targetName = fs.readSymLink(link);
- assertEquals("y", targetName);
+ assertEquals("å", targetName);
assertTrue(fs.lastModified(link) > 0);
assertTrue(fs.exists(link));
assertFalse(fs.canExecute(link));
- assertEquals(1, fs.length(link));
+ assertEquals(2, fs.length(link));
assertFalse(fs.exists(target));
assertFalse(fs.isFile(target));
assertFalse(fs.isDirectory(target));