use of org.assertj.core.internal.IterableElementComparisonStrategy in project assertj-core by joel-costigliola.
the class AbstractIterableAssert method usingElementComparator.
/**
* {@inheritDoc}
*/
@Override
@CheckReturnValue
public SELF usingElementComparator(Comparator<? super ELEMENT> elementComparator) {
this.iterables = new Iterables(new ComparatorBasedComparisonStrategy(elementComparator));
// to have the same semantics on base assertions like isEqualTo, we need to use an iterable comparator comparing
// elements with elementComparator parameter
objects = new Objects(new IterableElementComparisonStrategy<>(elementComparator));
return myself;
}
Aggregations