Skip to content

Commit

Permalink
Scala: Fix tests (#1151)
Browse files Browse the repository at this point in the history
Remove hidden import
Remove parentheses

JAVA-5039
  • Loading branch information
rozza authored Jun 23, 2023
1 parent a7b9ce0 commit 307ec82
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package org.mongodb.scala.model

import com.mongodb.client.model.GeoNearOptions.geoNearOptions
import com.mongodb.client.model.QuantileMethod
import com.mongodb.client.model.fill.FillOutputField

import java.lang.reflect.Modifier._
Expand Down Expand Up @@ -409,8 +408,8 @@ class AggregatesSpec extends BaseSpec {
null,
sum("sum", Document("""{ $multiply: [ "$price", "$quantity" ] }""")),
avg("avg", "$quantity"),
percentile("percentile", "$quantity", List(0.95, 0.3), QuantileMethod.approximate()),
median("median", "$quantity", QuantileMethod.approximate()),
percentile("percentile", "$quantity", List(0.95, 0.3), QuantileMethod.approximate),
median("median", "$quantity", QuantileMethod.approximate),
min("min", "$quantity"),
minN("minN", "$quantity", 2),
max("max", "$quantity"),
Expand Down Expand Up @@ -452,10 +451,10 @@ class AggregatesSpec extends BaseSpec {
"newField02P",
"$field02P",
List(0.3, 0.9),
QuantileMethod.approximate(),
QuantileMethod.approximate,
Some(range(UNBOUNDED, 1))
),
WindowOutputFields.median("newField02M", "$field02M", QuantileMethod.approximate(), Some(range(UNBOUNDED, 1))),
WindowOutputFields.median("newField02M", "$field02M", QuantileMethod.approximate, Some(range(UNBOUNDED, 1))),
WindowOutputFields.stdDevSamp("newField03", "$field03", Some(window)),
WindowOutputFields.stdDevPop("newField04", "$field04", Some(window)),
WindowOutputFields.min("newField05", "$field05", Some(window)),
Expand Down

0 comments on commit 307ec82

Please sign in to comment.