Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestBlame.java @ 628:6526d8adbc0f
Explicit HgRuntimeException to facilitate easy switch from runtime to checked exceptions
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 22 May 2013 15:52:31 +0200 |
parents | b4948b159ab1 |
children | 5f52074707b2 |
comparison
equal
deleted
inserted
replaced
627:5153eb73b18d | 628:6526d8adbc0f |
---|---|
275 df.diff(cs, 8, new DiffOutInspector(new PrintStream(bos))); | 275 df.diff(cs, 8, new DiffOutInspector(new PrintStream(bos))); |
276 eh.run("hg", "diff", "-r", String.valueOf(cs), "-r", "8", "-U", "0", df.getPath().toString()); | 276 eh.run("hg", "diff", "-r", String.valueOf(cs), "-r", "8", "-U", "0", df.getPath().toString()); |
277 // | 277 // |
278 String[] apiResult = splitLines(bos.toString()); | 278 String[] apiResult = splitLines(bos.toString()); |
279 String[] expected = splitLines(gp.result()); | 279 String[] expected = splitLines(gp.result()); |
280 Assert.assertArrayEquals(expected, apiResult); | 280 Assert.assertArrayEquals("diff -r " + cs + " - r 8", expected, apiResult); |
281 gp.reset(); | 281 gp.reset(); |
282 } | 282 } |
283 } | 283 } |
284 | 284 |
285 /** | 285 /** |