Search in sources :

Example 1 with Integers

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;
}
Also used : Integers(org.assertj.core.internal.Integers) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) CheckReturnValue(org.assertj.core.util.CheckReturnValue)

Example 2 with Integers

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;
}
Also used : Integers(org.assertj.core.internal.Integers) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) CheckReturnValue(org.assertj.core.util.CheckReturnValue)

Example 3 with Integers

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;
}
Also used : Integers(org.assertj.core.internal.Integers) AbsValueComparator(org.assertj.core.util.AbsValueComparator) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Failures(org.assertj.core.internal.Failures) Before(org.junit.Before)

Aggregations

ComparatorBasedComparisonStrategy (org.assertj.core.internal.ComparatorBasedComparisonStrategy)3 Integers (org.assertj.core.internal.Integers)3 CheckReturnValue (org.assertj.core.util.CheckReturnValue)2 Failures (org.assertj.core.internal.Failures)1 AbsValueComparator (org.assertj.core.util.AbsValueComparator)1 Before (org.junit.Before)1