diff options
Diffstat (limited to 'kamon-core-tests/src/test/scala/kamon/context/ContextSerializationSpec.scala')
-rw-r--r-- | kamon-core-tests/src/test/scala/kamon/context/ContextSerializationSpec.scala | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kamon-core-tests/src/test/scala/kamon/context/ContextSerializationSpec.scala b/kamon-core-tests/src/test/scala/kamon/context/ContextSerializationSpec.scala index 22400fa9..7ffb0838 100644 --- a/kamon-core-tests/src/test/scala/kamon/context/ContextSerializationSpec.scala +++ b/kamon-core-tests/src/test/scala/kamon/context/ContextSerializationSpec.scala @@ -22,29 +22,29 @@ import kamon.testkit.ContextTesting import org.scalatest.{Matchers, OptionValues, WordSpec} class ContextSerializationSpec extends WordSpec with Matchers with ContextTesting with OptionValues { - "the Context is Serializable" ignore { - "empty " in { - val bos = new ByteArrayOutputStream() - val oos = new ObjectOutputStream(bos) - oos.writeObject(Context.Empty) - - val ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray)) - val ctx = ois.readObject().asInstanceOf[Context] - ctx shouldBe Context.Empty - } - - "full" in { - val sCtx = Context.of(StringBroadcastKey, Some("disi")) - val bos = new ByteArrayOutputStream() - val oos = new ObjectOutputStream(bos) - oos.writeObject(sCtx) - - val ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray)) - val rCtx = ois.readObject().asInstanceOf[Context] - rCtx shouldBe sCtx - } - - } - - val ContextCodec = new Codecs(Kamon.config()) +// "the Context is Serializable" ignore { +// "empty " in { +// val bos = new ByteArrayOutputStream() +// val oos = new ObjectOutputStream(bos) +// oos.writeObject(Context.Empty) +// +// val ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray)) +// val ctx = ois.readObject().asInstanceOf[Context] +// ctx shouldBe Context.Empty +// } +// +// "full" in { +// val sCtx = Context.of(StringBroadcastKey, Some("disi")) +// val bos = new ByteArrayOutputStream() +// val oos = new ObjectOutputStream(bos) +// oos.writeObject(sCtx) +// +// val ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray)) +// val rCtx = ois.readObject().asInstanceOf[Context] +// rCtx shouldBe sCtx +// } +// +// } +// +// val ContextCodec = new Codecs(Kamon.config()) }
\ No newline at end of file |