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