Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/LIFORevQueueTest.java')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/LIFORevQueueTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/LIFORevQueueTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/LIFORevQueueTest.java
index 7676a71503..1b2c5e2f6a 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/LIFORevQueueTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/LIFORevQueueTest.java
@@ -43,24 +43,33 @@
package org.eclipse.jgit.revwalk;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertSame;
+
import java.util.ArrayList;
import java.util.Collections;
+import org.junit.Test;
+
public class LIFORevQueueTest extends RevQueueTestCase<LIFORevQueue> {
protected LIFORevQueue create() {
return new LIFORevQueue();
}
+ @Test
public void testEmpty() throws Exception {
super.testEmpty();
assertEquals(0, q.outputType());
}
+ @Test
public void testCloneEmpty() throws Exception {
q = new LIFORevQueue(AbstractRevQueue.EMPTY_QUEUE);
assertNull(q.next());
}
+ @Test
public void testAddLargeBlocks() throws Exception {
final ArrayList<RevCommit> lst = new ArrayList<RevCommit>();
for (int i = 0; i < 3 * BlockRevQueue.Block.BLOCK_SIZE; i++) {

Back to the top