diff options
Diffstat (limited to 'shared/src/test/scala/ProductTypeFormatTests.scala')
-rw-r--r-- | shared/src/test/scala/ProductTypeFormatTests.scala | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/shared/src/test/scala/ProductTypeFormatTests.scala b/shared/src/test/scala/ProductTypeFormatTests.scala index 4c979c0..a869ac5 100644 --- a/shared/src/test/scala/ProductTypeFormatTests.scala +++ b/shared/src/test/scala/ProductTypeFormatTests.scala @@ -73,23 +73,6 @@ class ProductTypeFormatTests """{"h": {"x":true}}""" ) - case class Opt(x: Option[Int]) - implicit val optFmt = jsonFormat[Opt] - - "Option fields with some value" should behave like checkRoundtrip( - Opt(Some(2)), - """{"x":2}""" - ) - - "Option fields with null value" should behave like checkRoundtrip( - Opt(None), - """{"x":null}""" - ) - - "Option fields with undefined value" should "deserialize" in { - assert("{}".parseJson.convertTo[Opt] == Opt(None)) - } - case class Typed[T](t: T) implicit def typed[T: JsonFormat] = jsonFormat[Typed[T]] |