]> source.dussan.org Git - jgit.git/commitdiff
Use getPath() in FileResolverTest 88/17988/1
authorShawn Pearce <sop@google.com>
Fri, 1 Nov 2013 13:52:04 +0000 (14:52 +0100)
committerShawn Pearce <sop@google.com>
Sat, 2 Nov 2013 02:57:47 +0000 (19:57 -0700)
Necessary to get tests to pass when running under Buck.
Has no impact on Maven based invocation of tests.

Change-Id: I437114863df0bac346c94ef13796def47333d916

org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java

index 8d0ba964c6983f2ef9e83673220ee0cdb6e0ef1f..7c6d5915130d70b37e2ba09899ca4ea80ce92fbb 100644 (file)
@@ -153,7 +153,7 @@ public class FileResolverTest extends LocalDiskRepositoryTestCase {
                        Throwable why = e.getCause();
                        assertNotNull("has cause", why);
                        assertEquals("repository not found: "
-                                       + new File(base, name).getAbsolutePath(), why.getMessage());
+                                       + new File(base, name).getPath(), why.getMessage());
                }
        }
 }