package org.fest.assertions.internal;

import static org.fest.assertions.test.ExpectedException.none;

import static org.mockito.Mockito.spy;

import org.junit.Before;
import org.junit.Rule;

import org.fest.assertions.test.ExpectedException;
import org.fest.assertions.util.AbsValueComparator;
import org.fest.util.ComparatorBasedComparisonStrategy;

/**
 * Base class for tests involving {@link Doubles}
 * 
 * @author Joel Costigliola
 */
public class DoublesBaseTest {

  @Rule
  public ExpectedException thrown = none();

  protected Failures failures;
  protected Doubles doubles;

  protected ComparatorBasedComparisonStrategy absValueComparisonStrategy;
  protected Doubles doublesWithAbsValueComparisonStrategy;

  @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;
  }

  protected Double NaN() {
    return doubles.NaN();
  }

}
@@ -399,16 +399,140 @@
 oubles%7D%0A
+ * %3Cp%3E%0A * Is in %3Ccode%3Eorg.fest.assertions.internal%3C/code%3E package to be able to set %7B@link Doubles#failures%7D appropriately.%0A
  * %0A * @
@@ -1291,8 +1291,9 @@
 ;%0A  %7D%0A%0A%7D
+%0A

Fix javadoc