DATAMONGO-2470 - Adapt tests to AssertJ 3.15.0.

This commit is contained in:
Mark Paluch
2020-02-11 10:57:52 +01:00
parent e9d14f41a5
commit ca802c7ca4

View File

@@ -24,6 +24,7 @@ import org.junit.Test;
* Unit tests for {@link GeoCommandStatistics}.
*
* @author Oliver Gierke
* @author Mark Paluch
* @soundtrack Fruitcake - Jeff Coffin (The Inside of the Outside)
*/
public class GeoCommandStatisticsUnitTests {
@@ -37,10 +38,10 @@ public class GeoCommandStatisticsUnitTests {
public void fallsBackToNanIfNoAverageDistanceIsAvailable() {
GeoCommandStatistics statistics = GeoCommandStatistics.from(new Document("stats", null));
assertThat(statistics.getAverageDistance()).isEqualTo(Double.NaN);
assertThat(statistics.getAverageDistance()).isNaN();
statistics = GeoCommandStatistics.from(new Document("stats", new Document()));
assertThat(statistics.getAverageDistance()).isEqualTo(Double.NaN);
assertThat(statistics.getAverageDistance()).isNaN();
}
@Test // DATAMONGO-1361