summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-02-02 08:46:13 -0800
committerShawn O. Pearce <spearce@spearce.org>2010-02-02 08:46:25 -0800
commit434e7884e5b7db7a4314e80c33a3b98f045050b9 (patch)
tree2a34e118dafced13d01a5f790df9b292f2327315 /org.eclipse.jgit.test
parentd9fc01b8b2043e0e0bcf719c62be3d5889ac9954 (diff)
downloadjgit-434e7884e5b7db7a4314e80c33a3b98f045050b9.tar.gz
jgit-434e7884e5b7db7a4314e80c33a3b98f045050b9.zip
Remove RepositoryTestCase from DirCacheCGitCompatabilityTest
This test doesn't actually depend upon the large data set we have in the RepositoryTestCase, so drop that from the dependency and use the more simple LocalDiskRepositoryTestCase instead. Change-Id: I0fd4affe1dd5ec86e8c3253db42df11d3b612e36 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheCGitCompatabilityTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheCGitCompatabilityTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheCGitCompatabilityTest.java
index ab0c77110d..688fa73598 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheCGitCompatabilityTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheCGitCompatabilityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008, Google Inc.
+ * Copyright (C) 2008-2010, Google Inc.
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
@@ -52,13 +52,14 @@ import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
+import org.eclipse.jgit.junit.LocalDiskRepositoryTestCase;
import org.eclipse.jgit.lib.FileMode;
import org.eclipse.jgit.lib.ObjectId;
-import org.eclipse.jgit.lib.RepositoryTestCase;
+import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.treewalk.TreeWalk;
import org.eclipse.jgit.util.JGitTestUtil;
-public class DirCacheCGitCompatabilityTest extends RepositoryTestCase {
+public class DirCacheCGitCompatabilityTest extends LocalDiskRepositoryTestCase {
private final File index = pathOf("gitgit.index");
public void testReadIndex_LsFiles() throws Exception {
@@ -75,6 +76,7 @@ public class DirCacheCGitCompatabilityTest extends RepositoryTestCase {
}
public void testTreeWalk_LsFiles() throws Exception {
+ final Repository db = createBareRepository();
final Map<String, CGitIndexRecord> ls = readLsFiles();
final DirCache dc = new DirCache(index);
assertEquals(0, dc.getEntryCount());