diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2013-12-18 20:41:20 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2013-12-18 20:41:20 -0300 |
commit | 705f76aa41ebdf9384530e2e0d850a0ef703a5e6 (patch) | |
tree | d6026b84ca0f59823f5ead10291655b0ec7bf2a5 /kamon-trace/src/test/scala/kamon/trace/instrumentation/ActorLoggingSpec.scala | |
parent | 1d9305dc7a8ad2d6457b5ebe1635eb4838cf13a0 (diff) | |
download | Kamon-705f76aa41ebdf9384530e2e0d850a0ef703a5e6.tar.gz Kamon-705f76aa41ebdf9384530e2e0d850a0ef703a5e6.tar.bz2 Kamon-705f76aa41ebdf9384530e2e0d850a0ef703a5e6.zip |
more reformatted code
Diffstat (limited to 'kamon-trace/src/test/scala/kamon/trace/instrumentation/ActorLoggingSpec.scala')
-rw-r--r-- | kamon-trace/src/test/scala/kamon/trace/instrumentation/ActorLoggingSpec.scala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kamon-trace/src/test/scala/kamon/trace/instrumentation/ActorLoggingSpec.scala b/kamon-trace/src/test/scala/kamon/trace/instrumentation/ActorLoggingSpec.scala index ed6acd00..89742651 100644 --- a/kamon-trace/src/test/scala/kamon/trace/instrumentation/ActorLoggingSpec.scala +++ b/kamon-trace/src/test/scala/kamon/trace/instrumentation/ActorLoggingSpec.scala @@ -16,10 +16,10 @@ package kamon.trace.instrumentation import akka.testkit.TestKit -import org.scalatest.{Inspectors, Matchers, WordSpecLike} -import akka.actor.{Props, ActorLogging, Actor, ActorSystem} -import akka.event.Logging.{LogEvent} -import kamon.trace.{ContextAware, TraceContext, Trace} +import org.scalatest.{ Inspectors, Matchers, WordSpecLike } +import akka.actor.{ Props, ActorLogging, Actor, ActorSystem } +import akka.event.Logging.{ LogEvent } +import kamon.trace.{ ContextAware, TraceContext, Trace } class ActorLoggingSpec extends TestKit(ActorSystem("actor-logging-spec")) with WordSpecLike with Matchers with Inspectors { @@ -34,11 +34,11 @@ class ActorLoggingSpec extends TestKit(ActorSystem("actor-logging-spec")) with W } fishForMessage() { - case event: LogEvent if event.message.toString contains "TraceContext =>" => + case event: LogEvent if event.message.toString contains "TraceContext =>" ⇒ val ctxInEvent = event.asInstanceOf[ContextAware].traceContext ctxInEvent === testTraceContext - case event: LogEvent => false + case event: LogEvent ⇒ false } } } @@ -46,6 +46,6 @@ class ActorLoggingSpec extends TestKit(ActorSystem("actor-logging-spec")) with W class LoggerActor extends Actor with ActorLogging { def receive = { - case "info" => log.info("TraceContext => {}", Trace.context()) + case "info" ⇒ log.info("TraceContext => {}", Trace.context()) } } |