From 69c1244989e3524c85bc980940c7e6670bc76e11 Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Fri, 1 Nov 2013 14:52:04 +0100 Subject: [PATCH] Use getPath() in FileResolverTest Necessary to get tests to pass when running under Buck. Has no impact on Maven based invocation of tests. Change-Id: I437114863df0bac346c94ef13796def47333d916 --- .../tst/org/eclipse/jgit/http/test/FileResolverTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java index 8d0ba964c..7c6d59151 100644 --- a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java +++ b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java @@ -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()); } } }