Skip to content

Commit

Permalink
tweak version filters
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed May 1, 2023
1 parent 5f301f4 commit c158e2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void testNativeQuery() {
@Test
@SuppressWarnings("rawtypes")
public void genericMultiKeyValueQueries() {
checkMinDriverVersion(4.2);
checkMinDriverVersion(4.6);

getMapper().map(GenericKeyValue.class);
getDs().ensureIndexes(GenericKeyValue.class);
Expand All @@ -129,7 +129,8 @@ public void genericMultiKeyValueQueries() {

@Test
public void multiKeyValueQueries() {
checkMinDriverVersion(4.2);
checkMinDriverVersion(4.6);

getMapper().map(List.of(KeyValue.class));
getDs().ensureIndexes(KeyValue.class);
final KeyValue value = new KeyValue();
Expand Down
7 changes: 4 additions & 3 deletions core/src/test/java/dev/morphia/test/query/TestQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void testNativeQuery() {

@Test
public void genericMultiKeyValueQueries() {
checkMinDriverVersion(4.2);
checkMinDriverVersion(4.6);

getMapper().map(GenericKeyValue.class);
getDs().ensureIndexes(GenericKeyValue.class);
Expand Down Expand Up @@ -142,7 +142,7 @@ public void testStreams() {

@Test
public void multiKeyValueQueries() {
checkMinDriverVersion(4.2);
checkMinDriverVersion(4.6);

getMapper().map(List.of(KeyValue.class));
getDs().ensureIndexes(KeyValue.class);
Expand Down Expand Up @@ -826,7 +826,8 @@ public void testMixedProjection() {

@Test
public void testMultipleConstraintsOnOneField() {
checkMinDriverVersion(4.2);
checkMinDriverVersion(4.6);

getMapper().map(ContainsPic.class);
getDs().ensureIndexes();
Query<ContainsPic> query = getDs().find(ContainsPic.class);
Expand Down

0 comments on commit c158e2e

Please sign in to comment.