diff test/org/tmatesoft/hg/test/ErrorCollectorExt.java @ 520:1ee452f31187

Experimental support for inverse direction history walking. Refactored/streamlined cancellation in HgLogCommand and down the stack
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 21 Dec 2012 21:20:26 +0100
parents 9c9d09111aee
children
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/ErrorCollectorExt.java	Thu Dec 20 20:21:59 2012 +0100
+++ b/test/org/tmatesoft/hg/test/ErrorCollectorExt.java	Fri Dec 21 21:20:26 2012 +0100
@@ -59,7 +59,7 @@
 	public void assertTrue(final boolean value) {
 		assertTrue(null, value);
 	}
-
+	
 	public void assertTrue(final String reason, final boolean value) {
 		checkSucceeds(new Callable<Object>() {
 			public Object call() throws Exception {
@@ -72,4 +72,12 @@
 	public <T> void assertEquals(T expected, T actual) {
 		checkThat(null, actual, CoreMatchers.equalTo(expected));
 	}
+
+	public <T> void assertEquals(String reason, T expected, T actual) {
+		checkThat(reason, actual, CoreMatchers.equalTo(expected));
+	}
+
+	public void fail(String reason) {
+		addError(new AssertionError(reason));
+	}
 }
\ No newline at end of file