aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/ImplicitDerivedFormatTests.scala
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-03-08 16:53:44 -0800
committerJakob Odersky <jakob@odersky.com>2018-03-28 10:34:31 -0700
commitc5fe23594f66225eb18bf4e67472cd80023eb448 (patch)
tree58fe8509b3990932134c18e09ed69ee83b779373 /src/test/scala/ImplicitDerivedFormatTests.scala
parent2f3f9aa851080b6c79f3af14b3fdfeab56feffec (diff)
downloadspray-json-derivation-c5fe23594f66225eb18bf4e67472cd80023eb448.tar.gz
spray-json-derivation-c5fe23594f66225eb18bf4e67472cd80023eb448.tar.bz2
spray-json-derivation-c5fe23594f66225eb18bf4e67472cd80023eb448.zip
Refactor build to use sbt-crossproject
Diffstat (limited to 'src/test/scala/ImplicitDerivedFormatTests.scala')
-rw-r--r--src/test/scala/ImplicitDerivedFormatTests.scala24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/scala/ImplicitDerivedFormatTests.scala b/src/test/scala/ImplicitDerivedFormatTests.scala
deleted file mode 100644
index 1d54ae9..0000000
--- a/src/test/scala/ImplicitDerivedFormatTests.scala
+++ /dev/null
@@ -1,24 +0,0 @@
-package spray.json
-
-import org.scalatest._
-
-class ImplicitDerivedFormatTests
- extends FlatSpec
- with FormatTests
- with ImplicitDerivedFormats
- with DefaultJsonProtocol {
-
- case class B(x: Int, b: String, mp: Map[String, Int])
- case class C(b: B)
-
- "Simple parameter product" should behave like checkRoundtrip(
- B(42, "Hello World", Map("a" -> 1, "b" -> -1024)),
- """{ "x": 42, "b": "Hello World", "mp": { "a": 1, "b": -1024 } }"""
- )
-
- "Nested parameter product with custom child format" should behave like checkRoundtrip(
- C(B(42, "Hello World", Map("a" -> 1, "b" -> -1024))),
- """{"b" :{ "x": 42, "b": "Hello World", "mp": { "a": 1, "b": -1024 } } }"""
- )
-
-}