use of org.assertj.core.internal.ComparatorBasedComparisonStrategy in project assertj-core by joel-costigliola.
the class AbstractIntegerAssert method usingComparator.
@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super Integer> customComparator, String customComparatorDescription) {
super.usingComparator(customComparator, customComparatorDescription);
integers = new Integers(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
return myself;
}
use of org.assertj.core.internal.ComparatorBasedComparisonStrategy in project assertj-core by joel-costigliola.
the class AbstractListAssert method usingElementComparator.
@Override
@CheckReturnValue
public SELF usingElementComparator(Comparator<? super ELEMENT> customComparator) {
super.usingElementComparator(customComparator);
lists = new Lists(new ComparatorBasedComparisonStrategy(customComparator));
return myself;
}
use of org.assertj.core.internal.ComparatorBasedComparisonStrategy in project assertj-core by joel-costigliola.
the class AbstractDateAssert method usingComparator.
@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super Date> customComparator, String customComparatorDescription) {
super.usingComparator(customComparator, customComparatorDescription);
this.dates = new Dates(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
return myself;
}
use of org.assertj.core.internal.ComparatorBasedComparisonStrategy in project assertj-core by joel-costigliola.
the class AbstractDoubleAssert method usingComparator.
@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super Double> customComparator, String customComparatorDescription) {
super.usingComparator(customComparator, customComparatorDescription);
doubles = new Doubles(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
return myself;
}
use of org.assertj.core.internal.ComparatorBasedComparisonStrategy in project assertj-core by joel-costigliola.
the class AtomicLongAssert method usingComparator.
@Override
@CheckReturnValue
public AtomicLongAssert usingComparator(Comparator<? super AtomicLong> customComparator, String customComparatorDescription) {
super.usingComparator(customComparator, customComparatorDescription);
longs = new Longs(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
return myself;
}
Aggregations