use of org.assertj.core.internal.Longs in project assertj-core by joel-costigliola.
the class AbstractLongAssert method usingComparator.
@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super Long> customComparator, String customComparatorDescription) {
super.usingComparator(customComparator, customComparatorDescription);
longs = new Longs(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
return myself;
}
use of org.assertj.core.internal.Longs 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;
}
use of org.assertj.core.internal.Longs in project assertj-core by joel-costigliola.
the class LongsBaseTest method setUp.
@Before
public void setUp() {
failures = spy(new Failures());
longs = new Longs();
longs.setFailures(failures);
absValueComparisonStrategy = new ComparatorBasedComparisonStrategy(new AbsValueComparator<Long>());
longsWithAbsValueComparisonStrategy = new Longs(absValueComparisonStrategy);
longsWithAbsValueComparisonStrategy.failures = failures;
}
Aggregations