use of org.assertj.core.internal.Comparables in project assertj-core by joel-costigliola.
the class ComparablesBaseTest method setUp.
@Before
public void setUp() {
failures = spy(new Failures());
comparables = new Comparables();
comparables.failures = failures;
customComparisonStrategy = new ComparatorBasedComparisonStrategy(comparatorForCustomComparisonStrategy());
comparablesWithCustomComparisonStrategy = new Comparables(customComparisonStrategy);
comparablesWithCustomComparisonStrategy.failures = failures;
}
use of org.assertj.core.internal.Comparables 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;
}
use of org.assertj.core.internal.Comparables in project assertj-core by joel-costigliola.
the class AbstractComparableAssert_usingDefaultComparator_Test method verify_internal_effects.
@Override
protected void verify_internal_effects() {
assertThat(getObjects(assertions)).isSameAs(Objects.instance());
assertThat(getComparables(assertions)).isEqualTo(new Comparables());
}
use of org.assertj.core.internal.Comparables 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;
}
Aggregations