Skip to content

Commit

Permalink
readd defaulted options in base class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Jun 21, 2024
1 parent 84dc0f7 commit 899a2e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/test/java/dev/morphia/test/TemplatedTestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private Method isTestMethod(StackTraceElement element) {
}

public void testQuery(Function<Query<Document>, Query<Document>> function) {
testQuery(function);
testQuery(new ActionTestOptions(), function);
}

public void testQuery(ActionTestOptions options,
Expand All @@ -228,7 +228,7 @@ public void testQuery(ActionTestOptions options,
}

public void testUpdate(Function<Query<Document>, Query<Document>> function, UpdateOperator... operators) {
testUpdate(function, operators);
testUpdate(new ActionTestOptions(), function, operators);
}

public void testUpdate(ActionTestOptions options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import static dev.morphia.aggregation.stages.SetWindowFields.Output.output;
import static dev.morphia.aggregation.stages.SetWindowFields.setWindowFields;
import static dev.morphia.query.Sort.ascending;
import static dev.morphia.test.ServerVersion.ANY;
import static dev.morphia.test.ServerVersion.v70;

public class TestMedian extends TemplatedTestBase {
Expand All @@ -21,7 +20,7 @@ public class TestMedian extends TemplatedTestBase {
*/
@Test(testName = "Use |operatorName| as an Accumulator")
public void testExample1() {
testPipeline(new ActionTestOptions().serverVersion(ANY).orderMatters(false),
testPipeline(new ActionTestOptions().serverVersion(v70).orderMatters(false),
aggregation -> aggregation.pipeline(group().field("test01_median", median("$test01"))));
}

Expand Down

0 comments on commit 899a2e1

Please sign in to comment.