Search in sources :

Example 1 with Strings

use of org.assertj.core.internal.Strings in project assertj-core by joel-costigliola.

the class StringsBaseTest method setUp.

@Before
public void setUp() {
    failures = spy(new Failures());
    strings = new Strings();
    strings.failures = failures;
    comparisonStrategy = new ComparatorBasedComparisonStrategy(CaseInsensitiveStringComparator.instance);
    stringsWithCaseInsensitiveComparisonStrategy = new Strings(comparisonStrategy);
    stringsWithCaseInsensitiveComparisonStrategy.failures = failures;
}
Also used : ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Failures(org.assertj.core.internal.Failures) Strings(org.assertj.core.internal.Strings) Before(org.junit.Before)

Example 2 with Strings

use of org.assertj.core.internal.Strings in project assertj-core by joel-costigliola.

the class AbstractCharSequenceAssert method usingComparator.

@Override
@CheckReturnValue
public SELF usingComparator(Comparator<? super ACTUAL> customComparator, String customComparatorDescription) {
    super.usingComparator(customComparator, customComparatorDescription);
    this.strings = new Strings(new ComparatorBasedComparisonStrategy(customComparator, customComparatorDescription));
    return myself;
}
Also used : ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Strings(org.assertj.core.internal.Strings) CheckReturnValue(org.assertj.core.util.CheckReturnValue)

Aggregations

ComparatorBasedComparisonStrategy (org.assertj.core.internal.ComparatorBasedComparisonStrategy)2 Strings (org.assertj.core.internal.Strings)2 Failures (org.assertj.core.internal.Failures)1 CheckReturnValue (org.assertj.core.util.CheckReturnValue)1 Before (org.junit.Before)1