Skip to content

Commit 8e0113c

Browse files
joserayaMiguelAula
authored andcommitted
IC-125 Adds a test case for quoted values in csv serialization
1 parent dbe95db commit 8e0113c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/scala/com/intenthq/action_processor/integrations/serializations/csv/CsvSerializationSpec.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,10 @@ object CsvSerializationSpec extends SimpleIOSuite {
5050
checkLine(LocalDateTime.of(2020, 1, 1, 6, 2, 3), "2020-01-01T06:02:03") |+|
5151
checkLine(LocalDateTime.of(2020, 1, 1, 6, 2, 3).toInstant(ZoneOffset.UTC), "2020-01-01T06:02:03Z")
5252
}
53+
54+
pureTest("Serialize quoted values in strings") {
55+
case class Test(a: String, b: Option[String], c: String)
56+
checkLine(Test("a \"quoted\", value", Some("b"), "c"), "\"a \"\"quoted\"\", value\",b,c")
57+
}
58+
5359
}

0 commit comments

Comments
 (0)