Search in sources :

Example 6 with Failures

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

Example 7 with Failures

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

Example 8 with Failures

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

the class ThrowablesBaseTest method setUp.

@Before
public void setUp() {
    failures = spy(new Failures());
    throwables = new Throwables();
    throwables.failures = failures;
}
Also used : Throwables(org.assertj.core.internal.Throwables) Failures(org.assertj.core.internal.Failures) Before(org.junit.Before)

Example 9 with Failures

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

the class DoublesBaseTest method setUp.

@Before
public void setUp() {
    failures = spy(new Failures());
    doubles = new Doubles();
    doubles.setFailures(failures);
    absValueComparisonStrategy = new ComparatorBasedComparisonStrategy(new AbsValueComparator<Double>());
    doublesWithAbsValueComparisonStrategy = new Doubles(absValueComparisonStrategy);
    doublesWithAbsValueComparisonStrategy.failures = failures;
}
Also used : Doubles(org.assertj.core.internal.Doubles) AbsValueComparator(org.assertj.core.util.AbsValueComparator) ComparatorBasedComparisonStrategy(org.assertj.core.internal.ComparatorBasedComparisonStrategy) Failures(org.assertj.core.internal.Failures) Before(org.junit.Before)

Example 10 with Failures

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

the class InputStreamsBaseTest method setUp.

@Before
public void setUp() {
    diff = mock(Diff.class);
    failures = spy(new Failures());
    inputStreams = new InputStreams();
    inputStreams.diff = diff;
    inputStreams.failures = failures;
}
Also used : InputStreams(org.assertj.core.internal.InputStreams) Diff(org.assertj.core.internal.Diff) 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