public static void sameContent(Iterator expected, Iterator actual) { final Collection4 allExpected = new Collection4(); while (expected.hasNext()) { allExpected.add(expected.next()); } while (actual.hasNext()) { final Object current = actual.next(); final boolean removed = allExpected.remove(current); if (!removed) { unexpected(current); } } Assert.isTrue(allExpected.isEmpty(), allExpected.toString()); }
void removeConstraint(QCon a_constraint) { i_constraints.remove(a_constraint); }