Skip to content

Commit 827acb2

Browse files
committed
Update IterableSerializerTest.scala
1 parent d358acc commit 827acb2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/scala/com/fasterxml/jackson/module/scala/ser/IterableSerializerTest.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ class IterableSerializerTest extends SerializerTest {
104104
serialize(mutable.BitSet(0, 3, 2, 1)) shouldBe """[0,1,2,3]"""
105105
}
106106

107+
it should "serialize an Iterator[Int]" in {
108+
serialize(Iterator(1, 2, 3)) should be("[1,2,3]")
109+
}
110+
111+
it should "serialize a Stream[Int]" in {
112+
serialize(Stream(1, 2, 3)) should be("[1,2,3]")
113+
}
114+
107115
it should "honor the JsonInclude(NON_EMPTY) annotation" in {
108116
serialize(new NonEmptyCollections) should be("""{"nonEmptyIterable":[1,2,3]}""")
109117
}

0 commit comments

Comments
 (0)