summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm.test/src
diff options
context:
space:
mode:
authorKaloyan Raev <kaloyan.r@zend.com>2015-09-25 14:39:52 +0300
committerKaloyan Raev <kaloyan.r@zend.com>2015-10-29 11:58:08 +0200
commit96811c957ebdee29c8f1ba9be1039a2fcc63adb0 (patch)
tree241c3a21da310c7e15c262925d98efccbb6b576c /org.eclipse.jgit.pgm.test/src
parent79a7dd026fa393fa3c66e945839e9faef744be2f (diff)
downloadjgit-96811c957ebdee29c8f1ba9be1039a2fcc63adb0.tar.gz
jgit-96811c957ebdee29c8f1ba9be1039a2fcc63adb0.zip
reset command should support the -- <paths> parameters
Bug: 480750 Change-Id: Ia85b1aead03dcf2fcb50ce0391b656f7c60a08d4 Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
Diffstat (limited to 'org.eclipse.jgit.pgm.test/src')
-rw-r--r--org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/lib/CLIRepositoryTestCase.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/lib/CLIRepositoryTestCase.java b/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/lib/CLIRepositoryTestCase.java
index 50ddfe04d8..559a6d5d40 100644
--- a/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/lib/CLIRepositoryTestCase.java
+++ b/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/lib/CLIRepositoryTestCase.java
@@ -164,6 +164,14 @@ public class CLIRepositoryTestCase extends LocalDiskRepositoryTestCase {
.replaceAll("\t", "\\\\t");
}
+ protected void assertStringArrayEquals(String expected, String[] actual) {
+ // if there is more than one line, ignore last one if empty
+ assertEquals(1,
+ actual.length > 1 && actual[actual.length - 1].equals("")
+ ? actual.length - 1 : actual.length);
+ assertEquals(expected, actual[0]);
+ }
+
protected void assertArrayOfLinesEquals(String[] expected, String[] actual) {
assertEquals(toText(expected), toText(actual));
}