diff test/org/tmatesoft/hg/test/TestPhases.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 fedc54356091
children 690e71d29bf6
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestPhases.java	Tue May 21 20:17:33 2013 +0200
+++ b/test/org/tmatesoft/hg/test/TestPhases.java	Wed May 22 15:52:31 2013 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012 TMate Software Ltd
+ * Copyright (c) 2012-2013 TMate Software Ltd
  *  
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -30,6 +30,7 @@
 import org.tmatesoft.hg.repo.HgParentChildMap;
 import org.tmatesoft.hg.repo.HgPhase;
 import org.tmatesoft.hg.repo.HgRepository;
+import org.tmatesoft.hg.repo.HgRuntimeException;
 
 /**
  * {hg4j.tests.repos}/test-phases/
@@ -67,7 +68,7 @@
 		System.out.printf("With ParentWalker(simulates log command for whole repo): %,d μs (pw init: %,d ns)\n", (end - start1)/1000, start2 - start1);
 	}
 
-	private HgPhase[] initAndCheck(PhasesHelper ph, HgPhase[] expected) {
+	private HgPhase[] initAndCheck(PhasesHelper ph, HgPhase[] expected) throws HgRuntimeException {
 		HgChangelog clog = ph.getRepo().getChangelog();
 		HgPhase[] result = new HgPhase[clog.getRevisionCount()];
 		for (int i = 0, l = clog.getLastRevision(); i <= l; i++) {