Skip to content

Commit 499f891

Browse files
committed
Updated FiltersFunctionalSpecification as Filters.Not has changed
JAVA-1740
1 parent 0fa569b commit 499f891

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

driver-core/src/test/functional/com/mongodb/client/model/FiltersFunctionalSpecification.groovy

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.mongodb.client.model
1818

19+
import com.mongodb.MongoQueryException
1920
import com.mongodb.OperationFunctionalSpecification
2021
import org.bson.BsonType
2122
import org.bson.Document
@@ -86,10 +87,12 @@ class FiltersFunctionalSpecification extends OperationFunctionalSpecification {
8687
find(not(eq('x', 1))) == [b, c]
8788
find(not(gt('x', 1))) == [a]
8889
find(not(regex('y', 'a.*'))) == [b, c]
90+
91+
when:
8992
find(not(and(eq('x', 1), eq('x', 1)))) == [b, c]
90-
find(not(and(Filters.in('a', 1, 2), eq('x', 1)))) == [b, c]
91-
find(not(and(eq('x', 1), eq('y', 'a')))) == [b, c]
92-
// find(not(and(eq('x', 1), eq('y', 'b')))) == [a, b, c] // should pass, but see JAVA-1740
93+
94+
then:
95+
thrown MongoQueryException
9396
}
9497

9598
def '$nor'() {

0 commit comments

Comments
 (0)