diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2013-03-19 23:23:59 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2013-03-20 00:44:24 +0100 |
commit | d35586a4311df0243d03dd825c1573942c393e0c (patch) | |
tree | e28d088a66ab3c71ac6a9efc1c2b9137e5b2457e /org.eclipse.jgit.junit | |
parent | 509c0b58ee6e38277c360df49d3d6400a3018748 (diff) | |
download | jgit-d35586a4311df0243d03dd825c1573942c393e0c.tar.gz jgit-d35586a4311df0243d03dd825c1573942c393e0c.zip |
Don't use internal type FileRepository in public API
Change-Id: I7c9c09b4f190fa7cb830563bcdf2071407ee2ce0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/JGitTestUtil.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/JGitTestUtil.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/JGitTestUtil.java index a20e21cb04..c6fe4e4d91 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/JGitTestUtil.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/JGitTestUtil.java @@ -54,7 +54,7 @@ import java.lang.reflect.Method; import java.net.URISyntaxException; import java.net.URL; -import org.eclipse.jgit.internal.storage.file.FileRepository; +import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.util.FileUtils; import org.eclipse.jgit.util.IO; import org.eclipse.jgit.util.RawParseUtils; @@ -135,14 +135,14 @@ public abstract class JGitTestUtil { return JGitTestUtil.class.getClassLoader(); } - public static File writeTrashFile(final FileRepository db, + public static File writeTrashFile(final Repository db, final String name, final String data) throws IOException { File path = new File(db.getWorkTree(), name); write(path, data); return path; } - public static File writeTrashFile(final FileRepository db, + public static File writeTrashFile(final Repository db, final String subdir, final String name, final String data) throws IOException { File path = new File(db.getWorkTree() + "/" + subdir, name); @@ -190,13 +190,13 @@ public abstract class JGitTestUtil { return new String(body, 0, body.length, "UTF-8"); } - public static String read(final FileRepository db, final String name) + public static String read(final Repository db, final String name) throws IOException { File file = new File(db.getWorkTree(), name); return read(file); } - public static void deleteTrashFile(final FileRepository db, + public static void deleteTrashFile(final Repository db, final String name) throws IOException { File path = new File(db.getWorkTree(), name); FileUtils.delete(path); |