You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DATAMONGO-1425 - Compare not like/not containing queries in tests using JSON.
Comparing query documents using equals performs an object equals check and not a BSON represented equality check. Since Pattern.equals performs only a object instance equality check (this==that) we cannot check for equality using equals as this check always returns false. We now compare nested patterns using the JSON representation.
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/query/MongoQueryCreatorUnitTests.java
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@
62
62
63
63
/**
64
64
* Unit test for {@link MongoQueryCreator}.
65
-
*
65
+
*
66
66
* @author Oliver Gierke
67
67
* @author Thomas Darimont
68
68
* @author Christoph Strobl
@@ -463,7 +463,7 @@ public void shouldCreateRegexWhenUsingNotContainsOnStringProperty() {
0 commit comments