private boolean expect(ObjectContainer container, String[] names) { Collection4 expected = new Collection4(names); ObjectSet actual = container.query(CrashData.class); while (actual.hasNext()) { CrashData current = (CrashData) actual.next(); if (!expected.remove(current._name)) { return false; } } return expected.isEmpty(); }
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); }
public void remove(ObjectContainerBase container) { _containers.remove(container); }