diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2009-10-02 19:01:04 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2009-10-05 12:17:11 -0700 |
commit | 1640812b89b6adffce580ec0472c266f6fcc0403 (patch) | |
tree | 361cbb15087bd5ccc3a5c8ff402981dbf341c3f8 | |
parent | add24f2a361463002b875fc8e581df95f42480c9 (diff) | |
download | jgit-1640812b89b6adffce580ec0472c266f6fcc0403.tar.gz jgit-1640812b89b6adffce580ec0472c266f6fcc0403.zip |
Remove useless test005_todopack test
This test doesn't work because it requires a pack file which we have
lost to the ages. We couldn't include it because the pack was actually
a copy of the GPL'd C git.git project, and was there to test some sort
of corner case that the test never documented properly.
Change-Id: I282ee1c6a637a8654df93a3847507a6c60e4cfab
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0004_PackReader.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0004_PackReader.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0004_PackReader.java index adddbfe099..be801e4940 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0004_PackReader.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0004_PackReader.java @@ -83,32 +83,4 @@ public class T0004_PackReader extends RepositoryTestCase { assertEquals(18009, or.getSize()); assertEquals(537, ((PackedObjectLoader) or).getDataOffset()); } - - public void test005_todopack() throws IOException { - final File todopack = JGitTestUtil.getTestResourceFile("todopack"); - if (!todopack.isDirectory()) { - System.err.println("Skipping " + getName() + ": no " + todopack); - return; - } - - final File packDir = new File(db.getObjectsDirectory(), "pack"); - final String packname = "pack-2e71952edc41f3ce7921c5e5dd1b64f48204cf35"; - copyFile(new File(todopack, packname + ".pack"), new File(packDir, - packname + ".pack")); - copyFile(new File(todopack, packname + ".idx"), new File(packDir, - packname + ".idx")); - Tree t; - - t = db - .mapTree(ObjectId.fromString( - "aac9df07f653dd18b935298deb813e02c32d2e6f")); - assertNotNull(t); - t.memberCount(); - - t = db - .mapTree(ObjectId.fromString( - "6b9ffbebe7b83ac6a61c9477ab941d999f5d0c96")); - assertNotNull(t); - t.memberCount(); - } } |