Skip to content

Commit

Permalink
restrict to version 7
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Jun 20, 2024
1 parent 3505721 commit 609b637
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.regex.Pattern;

import dev.morphia.test.ServerVersion;
import dev.morphia.test.util.ActionTestOptions;

import org.testng.annotations.Test;
Expand Down Expand Up @@ -48,8 +49,11 @@ public void testExample4() {
*/
@Test(testName = "Ignore White Spaces in Pattern")
public void testExample5() {
testQuery(new ActionTestOptions().skipActionCheck(true), (query) -> query
.filter(regex("sku", Pattern.compile("abc #category code\n123 #item number")).extended()));
testQuery(new ActionTestOptions()
.serverVersion(ServerVersion.v70)
.skipActionCheck(true),
(query) -> query
.filter(regex("sku", Pattern.compile("abc #category code\n123 #item number")).extended()));
}

/**
Expand Down

0 comments on commit 609b637

Please sign in to comment.