Permalink
Browse files
Merge pull request #285 from seratch/feature/issue137
Fix #137 Make DefaultFormats serializable
- Loading branch information
Showing
with
22 additions
and 1 deletion.
| @@ -0,0 +1,21 @@ | ||
| package org.json4s | ||
|
|
||
| import org.specs2.mutable.Specification | ||
|
|
||
| class FormatsSpec extends Specification { | ||
|
|
||
| "Formats" should { | ||
| "be a Serializable" in { | ||
| val f = new Formats { | ||
| def dateFormat: DateFormat = ??? | ||
| } | ||
| f.isInstanceOf[Serializable] must beTrue | ||
| } | ||
| } | ||
|
|
||
| "DefaultFormats" should { | ||
| "be a Serializable" in { | ||
| DefaultFormats.isInstanceOf[Serializable] must beTrue | ||
| } | ||
| } | ||
| } |