use of org.assertj.core.internal.Doubles in project assertj-core by joel-costigliola.
the class AbstractDoubleAssert method usingComparator.
@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super Double> customComparator, String customComparatorDescription) {
super.usingComparator(customComparator, customComparatorDescription);
doubles = new Doubles(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
return myself;
}
use of org.assertj.core.internal.Doubles in project assertj-core by joel-costigliola.
the class DoublesBaseTest method setUp.
@Before
public void setUp() {
failures = spy(new Failures());
doubles = new Doubles();
doubles.setFailures(failures);
absValueComparisonStrategy = new ComparatorBasedComparisonStrategy(new AbsValueComparator<Double>());
doublesWithAbsValueComparisonStrategy = new Doubles(absValueComparisonStrategy);
doublesWithAbsValueComparisonStrategy.failures = failures;
}
Aggregations