return assertions.usingElementComparatorIgnoringFields("field");
}
@Override
protected void verify_internal_effects() {
Lists lists = getLists(assertions);
Iterables iterables = getIterables(assertions);
assertThat(lists).isNotSameAs(listsBefore);
assertThat(iterables).isNotSameAs(iterablesBefore);
assertThat(iterables.getComparisonStrategy()).isInstanceOf(ComparatorBasedComparisonStrategy.class);
assertThat(lists.getComparisonStrategy()).isInstanceOf(ComparatorBasedComparisonStrategy.class);
Comparator<?> listsElementComparator = ((ComparatorBasedComparisonStrategy) lists.getComparisonStrategy()).getComparator();
assertThat(listsElementComparator).isInstanceOf(IgnoringFieldsComparator.class);
assertThat(((IgnoringFieldsComparator) listsElementComparator).getFields()).containsOnly("field");
Comparator<?> iterablesElementComparator = ((ComparatorBasedComparisonStrategy) iterables.getComparisonStrategy()).getComparator();
assertThat(iterablesElementComparator).isInstanceOf(IgnoringFieldsComparator.class);
assertThat(((IgnoringFieldsComparator) iterablesElementComparator).getFields()).containsOnly("field");