Browse Source

DATAMONGO-2470 - Adapt tests to AssertJ 3.15.0.

issue/SO-60250019
Mark Paluch 6 years ago
parent
commit
ca802c7ca4
No known key found for this signature in database
GPG Key ID: 51A00FA751B91849
  1. 5
      spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/GeoCommandStatisticsUnitTests.java

5
spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/GeoCommandStatisticsUnitTests.java

@ -24,6 +24,7 @@ import org.junit.Test; @@ -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 { @@ -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

Loading…
Cancel
Save