infoProviderList.size());
}
private void assertSameList(List<GadgetInfo> expected, List<GadgetInfo> actual) {
for (int i = 0; i < expected.size(); i++) {
GadgetInfo gadget1 = expected.get(i);
GadgetInfo gadget2 = actual.get(i);
if (!isEqual(gadget1, gadget2)) {
fail("The filtered gadgets are not the same: " + gadget1.getName() + ", "
+ gadget2.getName());
}
}
}