Search in sources :

Example 1 with Dates

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

Aggregations

ComparatorBasedComparisonStrategy (org.assertj.core.internal.ComparatorBasedComparisonStrategy)1 Dates (org.assertj.core.internal.Dates)1 CheckReturnValue (org.assertj.core.util.CheckReturnValue)1