@@ -123,7 +123,6 @@ class MongoClientSpecification extends Specification {
123
123
.readConcern(ReadConcern . MAJORITY )
124
124
.codecRegistry(getDefaultCodecRegistry())
125
125
.build()
126
- def codecRegistry = settings. getCodecRegistry()
127
126
def readPreference = settings. getReadPreference()
128
127
def readConcern = settings. getReadConcern()
129
128
def client = new MongoClientImpl (Stub (Cluster ), null , settings, executor)
@@ -133,23 +132,26 @@ class MongoClientSpecification extends Specification {
133
132
def changeStreamIterable = execute(watchMethod, session)
134
133
135
134
then :
136
- expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace, codecRegistry,
135
+ expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace,
136
+ withUuidRepresentation(getDefaultCodecRegistry(), UNSPECIFIED ),
137
137
readPreference, readConcern, executor, [], Document , ChangeStreamLevel . CLIENT , true ),
138
138
[' codec' ])
139
139
140
140
when :
141
141
changeStreamIterable = execute(watchMethod, session, [new Document (' $match' , 1 )])
142
142
143
143
then :
144
- expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace, codecRegistry,
144
+ expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace,
145
+ withUuidRepresentation(getDefaultCodecRegistry(), UNSPECIFIED ),
145
146
readPreference, readConcern, executor, [new Document (' $match' , 1 )], Document , ChangeStreamLevel . CLIENT ,
146
147
true ), [' codec' ])
147
148
148
149
when :
149
150
changeStreamIterable = execute(watchMethod, session, [new Document (' $match' , 1 )], BsonDocument )
150
151
151
152
then :
152
- expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace, codecRegistry,
153
+ expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace,
154
+ withUuidRepresentation(getDefaultCodecRegistry(), UNSPECIFIED ),
153
155
readPreference, readConcern, executor, [new Document (' $match' , 1 )], BsonDocument ,
154
156
ChangeStreamLevel . CLIENT , true ), [' codec' ])
155
157
0 commit comments