Skip to content

Commit a7b9ce0

Browse files
committed
Test: Update AggregatesTest to use List of Doubles
The kotlinx codec was picking up the double array as it was serializable. However, it should be limited to top level data, value or sealed kotlin classes. JAVA-5035
1 parent 206a119 commit a7b9ce0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-core/src/test/functional/com/mongodb/client/model/AggregatesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ public void shouldGroupWithQuantile(final BsonField quantileAccumulator,
9797
private static Stream<Arguments> setWindowFieldWithQuantileSource() {
9898
return Stream.of(
9999
Arguments.of(null,
100-
WindowOutputFields.percentile("result", "$num1", new double[]{0.1, 0.9}, QuantileMethod.approximate(),
100+
WindowOutputFields.percentile("result", "$num1", asList(0.1, 0.9), QuantileMethod.approximate(),
101101
documents(UNBOUNDED, UNBOUNDED)),
102102
asList(asList(1.0, 3.0), asList(1.0, 3.0), asList(1.0, 3.0))),
103103
Arguments.of("$partitionId",
104-
WindowOutputFields.percentile("result", "$num1", new double[]{0.1, 0.9}, QuantileMethod.approximate(), null),
104+
WindowOutputFields.percentile("result", "$num1", asList(0.1, 0.9), QuantileMethod.approximate(), null),
105105
asList(asList(1.0, 2.0), asList(1.0, 2.0), asList(3.0, 3.0))),
106106
Arguments.of(null,
107107
WindowOutputFields.median("result", "$num1", QuantileMethod.approximate(), documents(UNBOUNDED, UNBOUNDED)),

0 commit comments

Comments
 (0)