Search in sources :

Example 11 with CheckReturnValue

use of org.assertj.core.util.CheckReturnValue in project assertj-core by joel-costigliola.

the class AbstractComparableAssert method usingDefaultComparator.

@Override
@CheckReturnValue
public SELF usingDefaultComparator() {
    super.usingDefaultComparator();
    this.comparables = new Comparables();
    return myself;
}
Also used : Comparables(org.assertj.core.internal.Comparables) CheckReturnValue(org.assertj.core.util.CheckReturnValue)

Example 12 with CheckReturnValue

use of org.assertj.core.util.CheckReturnValue in project assertj-core by joel-costigliola.

the class AbstractBigDecimalAssert method usingComparator.

@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super BigDecimal> customComparator, String customComparatorDescription) {
    super.usingComparator(customComparator, customComparatorDescription);
    this.bigDecimals = new BigDecimals(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
    return myself;
}
Also used : ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) BigDecimals(org.assertj.core.internal.BigDecimals) CheckReturnValue(org.assertj.core.util.CheckReturnValue)

Example 13 with CheckReturnValue

use of org.assertj.core.util.CheckReturnValue in project assertj-core by joel-costigliola.

the class AbstractByteAssert method usingComparator.

@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super Byte> customComparator, String customComparatorDescription) {
    super.usingComparator(customComparator, customComparatorDescription);
    this.bytes = new Bytes(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
    return myself;
}
Also used : Bytes(org.assertj.core.internal.Bytes) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) CheckReturnValue(org.assertj.core.util.CheckReturnValue)

Example 14 with CheckReturnValue

use of org.assertj.core.util.CheckReturnValue in project assertj-core by joel-costigliola.

the class AbstractComparableAssert method usingComparator.

@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super ACTUAL> customComparator, String customComparatorDescription) {
    super.usingComparator(customComparator, customComparatorDescription);
    this.comparables = new Comparables(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
    return myself;
}
Also used : ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Comparables(org.assertj.core.internal.Comparables) CheckReturnValue(org.assertj.core.util.CheckReturnValue)

Example 15 with CheckReturnValue

use of org.assertj.core.util.CheckReturnValue in project assertj-core by joel-costigliola.

the class AbstractBigIntegerAssert method usingComparator.

@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super BigInteger> customComparator, String customComparatorDescription) {
    super.usingComparator(customComparator, customComparatorDescription);
    this.bigIntegers = new BigIntegers(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
    return myself;
}
Also used : BigIntegers(org.assertj.core.internal.BigIntegers) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) CheckReturnValue(org.assertj.core.util.CheckReturnValue)

Aggregations

CheckReturnValue (org.assertj.core.util.CheckReturnValue)24 ComparatorBasedComparisonStrategy (org.assertj.core.internal.ComparatorBasedComparisonStrategy)18 ExtendedByTypesComparator (org.assertj.core.internal.ExtendedByTypesComparator)3 Objects (org.assertj.core.internal.Objects)3 Tuple (org.assertj.core.groups.Tuple)2 Comparables (org.assertj.core.internal.Comparables)2 Integers (org.assertj.core.internal.Integers)2 Longs (org.assertj.core.internal.Longs)2 ObjectArrays (org.assertj.core.internal.ObjectArrays)2 AtomicReferenceArrayElementComparisonStrategy (org.assertj.core.internal.AtomicReferenceArrayElementComparisonStrategy)1 BigDecimals (org.assertj.core.internal.BigDecimals)1 BigIntegers (org.assertj.core.internal.BigIntegers)1 Bytes (org.assertj.core.internal.Bytes)1 Characters (org.assertj.core.internal.Characters)1 Dates (org.assertj.core.internal.Dates)1 Doubles (org.assertj.core.internal.Doubles)1 Floats (org.assertj.core.internal.Floats)1 IterableElementComparisonStrategy (org.assertj.core.internal.IterableElementComparisonStrategy)1 Iterables (org.assertj.core.internal.Iterables)1 Lists (org.assertj.core.internal.Lists)1