private void assertContainersEquals(final ZeroDelayContainer src, final ZeroDelayContainer[] items, final ZeroDelayContainer... matches) { for (int i = 0; i < items.length; ++i) { boolean shouldMatch = false; for (int j = 0; j < matches.length; ++j) { if (items[i] == matches[j]) { shouldMatch = true; break; } } boolean isMatching = src.equals(items[i]); assertEquals(src.getObject() + " unexpectedly match " + items[i].getObject(), shouldMatch, isMatching); } }
private void assertContainersEquals(final ZeroDelayContainer src, final ZeroDelayContainer[] items, final ZeroDelayContainer... matches) { for (int i = 0; i < items.length; ++i) { boolean shouldMatch = false; for (int j = 0; j < matches.length; ++j) { if (items[i] == matches[j]) { shouldMatch = true; break; } } boolean isMatching = src.equals(items[i]); assertEquals(src.getObject() + " unexpectedly match " + items[i].getObject(), shouldMatch, isMatching); } }
private void assertContainersEquals(final ZeroDelayContainer src, final ZeroDelayContainer[] items, final ZeroDelayContainer... matches) { for (int i = 0; i < items.length; ++i) { boolean shouldMatch = false; for (int j = 0; j < matches.length; ++j) { if (items[i] == matches[j]) { shouldMatch = true; break; } } boolean isMatching = src.equals(items[i]); assertEquals(src.getObject() + " unexpectedly match " + items[i].getObject(), shouldMatch, isMatching); } }