Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/TreeIteratorPreOrderTest.java')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/TreeIteratorPreOrderTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/TreeIteratorPreOrderTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/TreeIteratorPreOrderTest.java
index 79d090d8a0..c68a042abf 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/TreeIteratorPreOrderTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/TreeIteratorPreOrderTest.java
@@ -44,11 +44,18 @@
package org.eclipse.jgit.lib;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
import java.io.IOException;
+import org.junit.Test;
+
public class TreeIteratorPreOrderTest extends RepositoryTestCase {
/** Empty tree */
+ @Test
public void testEmpty() {
Tree tree = new Tree(db);
TreeIterator i = makeIterator(tree);
@@ -62,6 +69,7 @@ public class TreeIteratorPreOrderTest extends RepositoryTestCase {
*
* @throws IOException
*/
+ @Test
public void testSimpleF1() throws IOException {
Tree tree = new Tree(db);
tree.addFile("x");
@@ -78,6 +86,7 @@ public class TreeIteratorPreOrderTest extends RepositoryTestCase {
*
* @throws IOException
*/
+ @Test
public void testSimpleF2() throws IOException {
Tree tree = new Tree(db);
tree.addFile("a");
@@ -96,6 +105,7 @@ public class TreeIteratorPreOrderTest extends RepositoryTestCase {
*
* @throws IOException
*/
+ @Test
public void testSimpleT() throws IOException {
Tree tree = new Tree(db);
tree.addTree("a");
@@ -107,6 +117,7 @@ public class TreeIteratorPreOrderTest extends RepositoryTestCase {
assertFalse(i.hasNext());
}
+ @Test
public void testTricky() throws IOException {
Tree tree = new Tree(db);
tree.addFile("a.b");

Back to the top