Skip to content

Commit

Permalink
check min driver version on test
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Oct 23, 2024
1 parent 2eb83aa commit 6b279e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/test/java/dev/morphia/test/DriverVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public enum DriverVersion {
v43(4, 3),
v45(4, 5),
v46(4, 6),
v47(4, 7);
v47(4, 7),
v52(5, 2);

private final int major;

Expand Down
3 changes: 2 additions & 1 deletion core/src/test/java/dev/morphia/test/OptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
import org.testng.annotations.Test;

@SuppressWarnings("SameParameterValue")
public class OptionsTest {
public class OptionsTest extends TestBase {
@Test
public void aggregationOptions() {
checkMinDriverVersion(DriverVersion.v52);
beanScan(AggregateIterable.class, AggregationOptions.class, List.of("builder",
"explain",
"getAllowDiskUse",
Expand Down

0 comments on commit 6b279e4

Please sign in to comment.