comparison test/org/tmatesoft/hg/test/TestIncoming.java @ 653:629a7370554c

Tests for recent changes in HgParentChildMap and RepositoryComparator (outgoing to respect drafts and Issue 47)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 03 Jul 2013 14:38:30 +0200
parents 2813a26b8999
children 822f3a83ff57
comparison
equal deleted inserted replaced
652:cd77bf51b562 653:629a7370554c
113 113
114 static void checkNodeids(String what, List<Nodeid> liteResult, List<Nodeid> expected, ErrorCollectorExt errorCollector) { 114 static void checkNodeids(String what, List<Nodeid> liteResult, List<Nodeid> expected, ErrorCollectorExt errorCollector) {
115 HashSet<Nodeid> set = new HashSet<Nodeid>(liteResult); 115 HashSet<Nodeid> set = new HashSet<Nodeid>(liteResult);
116 for (Nodeid nid : expected) { 116 for (Nodeid nid : expected) {
117 boolean removed = set.remove(nid); 117 boolean removed = set.remove(nid);
118 errorCollector.checkThat(what + " Missing " + nid.shortNotation() + " in HgIncomingCommand.execLite result", removed, equalTo(true)); 118 errorCollector.checkThat(what + " Missing " + nid.shortNotation() + " in execLite result", removed, equalTo(true));
119 } 119 }
120 errorCollector.checkThat(what + " Superfluous cset reported by HgIncomingCommand.execLite", set.isEmpty(), equalTo(true)); 120 errorCollector.checkThat(what + " Superfluous cset reported by execLite", set.isEmpty(), equalTo(true));
121 } 121 }
122 } 122 }