@@ -43,15 +43,15 @@ class IterableCodecSpecification extends Specification {
43
43
44
44
def ' should have Iterable encoding class' () {
45
45
given :
46
- def codec = new IterableCodec (REGISTRY , new BsonTypeClassMap ())
46
+ def codec = new IterableCodec (REGISTRY , new BsonTypeClassMap (), null )
47
47
48
48
expect :
49
49
codec. getEncoderClass() == Iterable
50
50
}
51
51
52
52
def ' should encode an Iterable to a BSON array' () {
53
53
given :
54
- def codec = new IterableCodec (REGISTRY , new BsonTypeClassMap ())
54
+ def codec = new IterableCodec (REGISTRY , new BsonTypeClassMap (), null )
55
55
def writer = new BsonDocumentWriter (new BsonDocument ())
56
56
57
57
when :
@@ -66,7 +66,7 @@ class IterableCodecSpecification extends Specification {
66
66
67
67
def ' should decode a BSON array to an Iterable' () {
68
68
given :
69
- def codec = new IterableCodec (REGISTRY , new BsonTypeClassMap ())
69
+ def codec = new IterableCodec (REGISTRY , new BsonTypeClassMap (), null )
70
70
def reader = new BsonDocumentReader (parse(' {array : [1, 2, 3, null]}' ))
71
71
72
72
when :
@@ -81,7 +81,7 @@ class IterableCodecSpecification extends Specification {
81
81
82
82
def ' should decode a BSON array of arrays to an Iterable of Iterables' () {
83
83
given :
84
- def codec = new IterableCodec (REGISTRY , new BsonTypeClassMap ())
84
+ def codec = new IterableCodec (REGISTRY , new BsonTypeClassMap (), null )
85
85
def reader = new BsonDocumentReader (parse(' {array : [[1, 2], [3, 4, 5]]}' ))
86
86
87
87
when :
@@ -116,7 +116,7 @@ class IterableCodecSpecification extends Specification {
116
116
def ' should decode binary subtype 3 for UUID' () {
117
117
given :
118
118
def reader = new BsonDocumentReader (parse(document))
119
- def codec = new IterableCodec (fromCodecs(new UuidCodec (representation), new BinaryCodec ()), new BsonTypeClassMap ())
119
+ def codec = new IterableCodec (fromCodecs(new UuidCodec (representation), new BinaryCodec ()), new BsonTypeClassMap (), null )
120
120
.withUuidRepresentation(representation)
121
121
122
122
when :
@@ -142,7 +142,7 @@ class IterableCodecSpecification extends Specification {
142
142
def ' should decode binary subtype 4 for UUID' () {
143
143
given :
144
144
def reader = new BsonDocumentReader (parse(document))
145
- def codec = new IterableCodec (fromCodecs(new UuidCodec (representation), new BinaryCodec ()), new BsonTypeClassMap ())
145
+ def codec = new IterableCodec (fromCodecs(new UuidCodec (representation), new BinaryCodec ()), new BsonTypeClassMap (), null )
146
146
.withUuidRepresentation(representation)
147
147
148
148
when :
0 commit comments