aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java
index eec403a976..5507f8572d 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java
@@ -373,10 +373,9 @@ public class PatchApplierTest {
assertEquals(result.getErrors().size(), 1);
PatchApplier.Result.Error error = result.getErrors().get(0);
- error.hh = null; // We don't assert the hunk header as it is a
- // complex object with lots of internal state.
- assertEquals(error, new PatchApplier.Result.Error(
- "cannot apply hunk", "allowconflict", null, true));
+ assertEquals("cannot apply hunk", error.msg);
+ assertEquals("allowconflict", error.oldFileName);
+ assertTrue(error.isGitConflict());
verifyChange(result, "allowconflict", true, 1);
}
@@ -388,10 +387,9 @@ public class PatchApplierTest {
assertEquals(result.getErrors().size(), 1);
PatchApplier.Result.Error error = result.getErrors().get(0);
- error.hh = null; // We don't assert the hunk header as it is a
- // complex object with lots of internal state.
- assertEquals(error, new PatchApplier.Result.Error(
- "cannot apply hunk", "ConflictOutOfBounds", null, true));
+ assertEquals("cannot apply hunk", error.msg);
+ assertEquals("ConflictOutOfBounds", error.oldFileName);
+ assertTrue(error.isGitConflict());
verifyChange(result, "ConflictOutOfBounds", true, 1);
}