Search in sources :

Example 11 with Failures

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

the class IntegersBaseTest method setUp.

@Before
public void setUp() {
    failures = spy(new Failures());
    integers = new Integers();
    integers.setFailures(failures);
    absValueComparisonStrategy = new ComparatorBasedComparisonStrategy(new AbsValueComparator<Integer>());
    integersWithAbsValueComparisonStrategy = new Integers(absValueComparisonStrategy);
    integersWithAbsValueComparisonStrategy.failures = failures;
}
Also used : Integers(org.assertj.core.internal.Integers) AbsValueComparator(org.assertj.core.util.AbsValueComparator) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Failures(org.assertj.core.internal.Failures) Before(org.junit.Before)

Example 12 with Failures

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

the class ListsBaseTest method setUp.

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

Example 13 with Failures

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

the class LongsBaseTest method setUp.

@Before
public void setUp() {
    failures = spy(new Failures());
    longs = new Longs();
    longs.setFailures(failures);
    absValueComparisonStrategy = new ComparatorBasedComparisonStrategy(new AbsValueComparator<Long>());
    longsWithAbsValueComparisonStrategy = new Longs(absValueComparisonStrategy);
    longsWithAbsValueComparisonStrategy.failures = failures;
}
Also used : Longs(org.assertj.core.internal.Longs) AbsValueComparator(org.assertj.core.util.AbsValueComparator) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Failures(org.assertj.core.internal.Failures) Before(org.junit.Before)

Example 14 with Failures

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

the class BooleansBaseTest method setUp.

@Before
public void setUp() {
    failures = spy(new Failures());
    booleans = new Booleans();
    booleans.failures = failures;
}
Also used : Booleans(org.assertj.core.internal.Booleans) 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