summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2012-09-23 01:45:23 +0200
committerRobin Stocker <robin@nibor.org>2012-09-25 21:00:57 +0200
commit9ea38173ccc5e4ef76abb9317fd7a1a221a228c6 (patch)
treeb6ab4d8fd06d6134eb4814389ded18e4cc305994 /org.eclipse.jgit.test/tst/org/eclipse
parentbc66934a8317f4af1e8454560f8179a249026dcc (diff)
downloadjgit-9ea38173ccc5e4ef76abb9317fd7a1a221a228c6.tar.gz
jgit-9ea38173ccc5e4ef76abb9317fd7a1a221a228c6.zip
Provide a convenient read() in RepositoryTestCase
For reading a file by its repository-relative path, analogous to writeTrashFile. Change-Id: I112de0d57c2ee1bd425de6cbf561a57fea7147f0
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java
index 457fd1a7ef..dd03427f9c 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java
@@ -108,6 +108,10 @@ public abstract class RepositoryTestCase extends LocalDiskRepositoryTestCase {
return JGitTestUtil.writeTrashFile(db, subdir, name, data);
}
+ protected String read(final String name) throws IOException {
+ return JGitTestUtil.read(db, name);
+ }
+
protected void deleteTrashFile(final String name) throws IOException {
JGitTestUtil.deleteTrashFile(db, name);
}