use of org.assertj.core.internal.Integers in project assertj-core by joel-costigliola.
the class AtomicIntegerAssert method usingComparator.
@Override
@CheckReturnValue
public AtomicIntegerAssert usingComparator(Comparator<? super AtomicInteger> customComparator, String customComparatorDescription) {
super.usingComparator(customComparator, customComparatorDescription);
integers = new Integers(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
return myself;
}
use of org.assertj.core.internal.Integers 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.Integers in project assertj-core by joel-costigliola.
the class IntegersBaseTest method setUp.
@Before
public void setUp() {
failures = spy(new Failures());
integers = new Integers();
integers.setFailures(failures);
absValueComparisonStrategy = new ComparatorBasedComparisonStrategy(new AbsValueComparator<Integer>());
integersWithAbsValueComparisonStrategy = new Integers(absValueComparisonStrategy);
integersWithAbsValueComparisonStrategy.failures = failures;
}
Aggregations