summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2011-03-14 07:09:41 -0700
committerShawn O. Pearce <spearce@spearce.org>2011-03-14 08:01:52 -0700
commit7a9bf1e2e034ad922a6fe4c7fc5b0f43baa69267 (patch)
treed782721fdca2c3a6d624cc94868a8a12c6ae2dee /org.eclipse.jgit.test
parent65f9a6e58bd9296cbbe1cffc7cf079fd65991686 (diff)
downloadjgit-7a9bf1e2e034ad922a6fe4c7fc5b0f43baa69267.tar.gz
jgit-7a9bf1e2e034ad922a6fe4c7fc5b0f43baa69267.zip
PackWriter: Rename getObjectsNumber to getObjectCount
This better matches with PackFile and CachedPack's methods that return the same value. Change-Id: Idb9b7c71d2048dd2344a62c2cde20b4e34529ab7 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/storage/file/PackWriterTest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackWriterTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackWriterTest.java
index 20e32b22c0..fb78ec02c7 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackWriterTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackWriterTest.java
@@ -133,7 +133,7 @@ public class PackWriterTest extends SampleDataRepositoryTestCase {
assertEquals(false, writer.isDeltaBaseAsOffset());
assertEquals(true, config.isReuseDeltas());
assertEquals(true, config.isReuseObjects());
- assertEquals(0, writer.getObjectsNumber());
+ assertEquals(0, writer.getObjectCount());
}
/**
@@ -164,7 +164,7 @@ public class PackWriterTest extends SampleDataRepositoryTestCase {
public void testWriteEmptyPack1() throws IOException {
createVerifyOpenPack(EMPTY_LIST_OBJECT, EMPTY_LIST_OBJECT, false, false);
- assertEquals(0, writer.getObjectsNumber());
+ assertEquals(0, writer.getObjectCount());
assertEquals(0, pack.getObjectCount());
assertEquals("da39a3ee5e6b4b0d3255bfef95601890afd80709", writer
.computeName().name());
@@ -180,7 +180,7 @@ public class PackWriterTest extends SampleDataRepositoryTestCase {
public void testWriteEmptyPack2() throws IOException {
createVerifyOpenPack(EMPTY_LIST_REVS);
- assertEquals(0, writer.getObjectsNumber());
+ assertEquals(0, writer.getObjectCount());
assertEquals(0, pack.getObjectCount());
}
@@ -323,7 +323,7 @@ public class PackWriterTest extends SampleDataRepositoryTestCase {
createVerifyOpenPack(Arrays.asList(forcedOrderRevs));
- assertEquals(forcedOrder.length, writer.getObjectsNumber());
+ assertEquals(forcedOrder.length, writer.getObjectCount());
verifyObjectsOrder(forcedOrder);
assertEquals("ed3f96b8327c7c66b0f8f70056129f0769323d86", writer
.computeName().name());
@@ -466,7 +466,7 @@ public class PackWriterTest extends SampleDataRepositoryTestCase {
ObjectId.fromString("5b6e7c66c276e7610d4a73c70ec1a1f7c1003259"),
ObjectId.fromString("6ff87c4664981e4397625791c8ea3bbb5f2279a3") };
- assertEquals(expectedOrder.length, writer.getObjectsNumber());
+ assertEquals(expectedOrder.length, writer.getObjectCount());
verifyObjectsOrder(expectedOrder);
assertEquals("34be9032ac282b11fa9babdc2b2a93ca996c9c2f", writer
.computeName().name());
@@ -495,7 +495,7 @@ public class PackWriterTest extends SampleDataRepositoryTestCase {
expectedOrder[4] = expectedOrder[5];
expectedOrder[5] = temp;
}
- assertEquals(expectedOrder.length, writer.getObjectsNumber());
+ assertEquals(expectedOrder.length, writer.getObjectCount());
verifyObjectsOrder(expectedOrder);
assertEquals("ed3f96b8327c7c66b0f8f70056129f0769323d86", writer
.computeName().name());
@@ -514,7 +514,7 @@ public class PackWriterTest extends SampleDataRepositoryTestCase {
ObjectId.fromString("82c6b885ff600be425b4ea96dee75dca255b69e7"),
ObjectId.fromString("aabf2ffaec9b497f0950352b3e582d73035c2035"),
ObjectId.fromString("5b6e7c66c276e7610d4a73c70ec1a1f7c1003259") };
- assertEquals(writtenObjects.length, writer.getObjectsNumber());
+ assertEquals(writtenObjects.length, writer.getObjectCount());
ObjectId expectedObjects[];
if (thin) {
expectedObjects = new ObjectId[4];
@@ -550,7 +550,7 @@ public class PackWriterTest extends SampleDataRepositoryTestCase {
NullProgressMonitor m = NullProgressMonitor.INSTANCE;
writer = new PackWriter(config, db.newObjectReader());
writer.preparePack(objectSource.iterator());
- assertEquals(objectSource.size(), writer.getObjectsNumber());
+ assertEquals(objectSource.size(), writer.getObjectCount());
writer.writePack(m, m, os);
writer.release();
verifyOpenPack(false);