Merge pull request #2881 from querydsl/dependabot/maven/org.mongodb-mongo-java-driver-3.12.8

Bump mongo-java-driver from 3.4.0 to 3.12.8
This commit is contained in:
Jan-Willem Gmelig Meyling 2021-06-29 12:26:03 +02:00 committed by GitHub
commit 9040bcbf70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@
<packaging>jar</packaging>
<properties>
<mongodb.version>3.4.0</mongodb.version>
<mongodb.version>3.12.8</mongodb.version>
<osgi.import.package>
com.mongodb;version="0.0.0",
org.mongodb.morphia.*;version="1.3.2",

View File

@ -126,7 +126,7 @@ public class MongodbSerializerTest {
assertQuery(gross.eq(1.0D), dbo("gross", 1.0D));
assertQuery(longField.eq(1L), dbo("longField", 1L));
assertQuery(shortField.eq((short) 1), dbo("shortField", 1));
assertQuery(byteField.eq((byte) 1), dbo("byteField", 1L));
assertQuery(byteField.eq((byte) 1), dbo("byteField", (byte) 1));
assertQuery(floatField.eq(1.0F), dbo("floatField", 1.0F));
assertQuery(date.eq(dateVal), dbo("date", dateVal));
@ -203,12 +203,12 @@ public class MongodbSerializerTest {
@Test
public void regexCases() {
assertQuery(title.startsWith("A"),
dbo("title", dbo("$regex", "^\\QA\\E")));
dbo("title", dbo("$regex", "^\\QA\\E").append("$options", "")));
assertQuery(title.startsWithIgnoreCase("A"),
dbo("title", dbo("$regex", "^\\QA\\E").append("$options", "i")));
assertQuery(title.endsWith("A"),
dbo("title", dbo("$regex", "\\QA\\E$")));
dbo("title", dbo("$regex", "\\QA\\E$").append("$options", "")));
assertQuery(title.endsWithIgnoreCase("A"),
dbo("title", dbo("$regex", "\\QA\\E$").append("$options", "i")));
@ -216,12 +216,12 @@ public class MongodbSerializerTest {
dbo("title", dbo("$regex", "^\\QA\\E$").append("$options", "i")));
assertQuery(title.contains("A"),
dbo("title", dbo("$regex", ".*\\QA\\E.*")));
dbo("title", dbo("$regex", ".*\\QA\\E.*").append("$options", "")));
assertQuery(title.containsIgnoreCase("A"),
dbo("title", dbo("$regex", ".*\\QA\\E.*").append("$options", "i")));
assertQuery(title.matches(".*A^"),
dbo("title", dbo("$regex", ".*A^")));
dbo("title", dbo("$regex", ".*A^").append("$options", "")));
}