diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2018-09-28 12:08:24 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2018-09-28 12:08:24 +0200 |
commit | b61c92ea3589450fd097ab79420230b61b458ae4 (patch) | |
tree | 1db5629ec257e41e3fff0bbd50eabdc45bb05d7d /kamon-core-tests/src/test/scala/kamon/context/ContextSerializationSpec.scala | |
parent | 6941f53c79bb4ad8adb5ebc4bcc3a3c44d02e353 (diff) | |
download | Kamon-b61c92ea3589450fd097ab79420230b61b458ae4.tar.gz Kamon-b61c92ea3589450fd097ab79420230b61b458ae4.tar.bz2 Kamon-b61c92ea3589450fd097ab79420230b61b458ae4.zip |
cleanup HTTP propagation, introduce a new Binary propagation
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 |