Search in sources :

Example 1 with Failures

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

the class ConditionsBaseTest method setUp.

@Before
public void setUp() {
    failures = spy(new Failures());
    condition = new TestCondition<>();
    conditions = new Conditions();
    conditions.failures = failures;
}
Also used : Failures(org.assertj.core.internal.Failures) Conditions(org.assertj.core.internal.Conditions) Before(org.junit.Before)

Example 2 with Failures

use of org.assertj.core.internal.Failures 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 3 with Failures

use of org.assertj.core.internal.Failures 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;
}
Also used : AbsValueComparator(org.assertj.core.util.AbsValueComparator) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Failures(org.assertj.core.internal.Failures) Floats(org.assertj.core.internal.Floats) Before(org.junit.Before)

Example 4 with Failures

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

the class IterablesBaseTest method setUp.

@Before
public void setUp() {
    actual = newArrayList("Luke", "Yoda", "Leia");
    failures = spy(new Failures());
    iterables = new Iterables();
    iterables.failures = failures;
    comparisonStrategy = new ComparatorBasedComparisonStrategy(CaseInsensitiveStringComparator.instance);
    iterablesWithCaseInsensitiveComparisonStrategy = new Iterables(comparisonStrategy);
    iterablesWithCaseInsensitiveComparisonStrategy.failures = failures;
    info = someInfo();
}
Also used : ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Failures(org.assertj.core.internal.Failures) Iterables(org.assertj.core.internal.Iterables) Before(org.junit.Before)

Example 5 with Failures

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

the class CharactersBaseTest method setUp.

@Before
public void setUp() {
    failures = spy(new Failures());
    characters = new Characters();
    characters.failures = failures;
    caseInsensitiveComparisonStrategy = new ComparatorBasedComparisonStrategy(CaseInsensitiveCharacterComparator.instance);
    charactersWithCaseInsensitiveComparisonStrategy = new Characters(caseInsensitiveComparisonStrategy);
    charactersWithCaseInsensitiveComparisonStrategy.failures = failures;
}
Also used : Characters(org.assertj.core.internal.Characters) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Failures(org.assertj.core.internal.Failures) Before(org.junit.Before)

Aggregations

Failures (org.assertj.core.internal.Failures)14 Before (org.junit.Before)14 ComparatorBasedComparisonStrategy (org.assertj.core.internal.ComparatorBasedComparisonStrategy)10 AbsValueComparator (org.assertj.core.util.AbsValueComparator)5 Booleans (org.assertj.core.internal.Booleans)1 Characters (org.assertj.core.internal.Characters)1 Comparables (org.assertj.core.internal.Comparables)1 Conditions (org.assertj.core.internal.Conditions)1 Diff (org.assertj.core.internal.Diff)1 Doubles (org.assertj.core.internal.Doubles)1 Floats (org.assertj.core.internal.Floats)1 InputStreams (org.assertj.core.internal.InputStreams)1 Integers (org.assertj.core.internal.Integers)1 Iterables (org.assertj.core.internal.Iterables)1 Lists (org.assertj.core.internal.Lists)1 Longs (org.assertj.core.internal.Longs)1 Shorts (org.assertj.core.internal.Shorts)1 Strings (org.assertj.core.internal.Strings)1 Throwables (org.assertj.core.internal.Throwables)1