]> source.dussan.org Git - jgit.git/commit
New functions to facilitate the writing of CLI test cases 63/5963/6
authorFrançois Rey <eclipse.org@francois.rey.name>
Thu, 13 Sep 2012 22:11:18 +0000 (00:11 +0200)
committerChris Aniszczyk <zx@twitter.com>
Wed, 27 Mar 2013 13:26:13 +0000 (09:26 -0400)
commit741ecf56b7eab161326806d566ef22c911496789
treee63c0f225ad81972f096463f5a4b46244a7050c5
parentedd47d10b9e96bde1958b19d04feef3cc8bf00fc
New functions to facilitate the writing of CLI test cases

Writing CLI test cases is tedious because of all the formatting and
escaping subtleties needed when comparing actual output with what's
expected. While creating a test case the two new functions are to be
used instead of the existing execute() in order to prepare the correct
command and expected output and to generate the corresponding test code
that can be pasted into the test case function.

Change-Id: Ia66dc449d3f6fb861c300fef8b56fba83a56c94c
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/lib/CLIRepositoryTestCase.java
org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/StatusTest.java