From 0c74a7027ca023e31ba6b0c2bf1c972bd820f7e8 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 18 Aug 2008 16:53:13 -0700 Subject: [PATCH] Fix usage of assertEquals in DirCacheIteratorTest I had the expected/actual values reversed so error messages from JUnit were a bit difficult to read. Signed-off-by: Shawn O. Pearce Signed-off-by: Robin Rosenberg --- .../tst/org/spearce/jgit/dircache/DirCacheIteratorTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/DirCacheIteratorTest.java b/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/DirCacheIteratorTest.java index 7d4e6bba..62a162fa 100644 --- a/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/DirCacheIteratorTest.java +++ b/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/DirCacheIteratorTest.java @@ -87,7 +87,7 @@ public class DirCacheIteratorTest extends RepositoryTestCase { assertSame(ents[pathIdx], i.getDirCacheEntry()); pathIdx++; } - assertEquals(pathIdx, paths.length); + assertEquals(paths.length, pathIdx); } public void testNoSubtree_WithTreeWalk() throws Exception { @@ -120,7 +120,7 @@ public class DirCacheIteratorTest extends RepositoryTestCase { assertSame(modes[pathIdx], tw.getFileMode(0)); pathIdx++; } - assertEquals(pathIdx, paths.length); + assertEquals(paths.length, pathIdx); } public void testSingleSubtree_NoRecursion() throws Exception { @@ -164,7 +164,7 @@ public class DirCacheIteratorTest extends RepositoryTestCase { pathIdx++; } - assertEquals(pathIdx, expPaths.length); + assertEquals(expPaths.length, pathIdx); } public void testSingleSubtree_Recursive() throws Exception { @@ -199,7 +199,7 @@ public class DirCacheIteratorTest extends RepositoryTestCase { assertSame(mode, tw.getFileMode(0)); pathIdx++; } - assertEquals(pathIdx, paths.length); + assertEquals(paths.length, pathIdx); } public void testTwoLevelSubtree_Recursive() throws Exception { @@ -233,7 +233,7 @@ public class DirCacheIteratorTest extends RepositoryTestCase { assertSame(mode, tw.getFileMode(0)); pathIdx++; } - assertEquals(pathIdx, paths.length); + assertEquals(paths.length, pathIdx); } public void testTwoLevelSubtree_FilterPath() throws Exception { -- 2.11.4.GIT