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