diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2013-10-30 09:04:25 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2013-10-30 09:04:25 -0300 |
commit | ca1e93621ddad4b9f2a9028ea183b1c2f4c25a27 (patch) | |
tree | 2f9ce9a7b2f73fd19b5ec2d1af46c4ab43037528 /kamon-metrics/src/test/scala | |
parent | ab40e0e7f35f97390d180b49d556ee36aac4af18 (diff) | |
download | Kamon-ca1e93621ddad4b9f2a9028ea183b1c2f4c25a27.tar.gz Kamon-ca1e93621ddad4b9f2a9028ea183b1c2f4c25a27.tar.bz2 Kamon-ca1e93621ddad4b9f2a9028ea183b1c2f4c25a27.zip |
move things all over the place
Diffstat (limited to 'kamon-metrics/src/test/scala')
-rw-r--r-- | kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala b/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala index 7cae30f1..206c58e1 100644 --- a/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala +++ b/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala @@ -1,12 +1,16 @@ package kamon -import org.scalatest.WordSpec +import org.scalatest.{WordSpecLike, WordSpec} +import akka.testkit.TestKit +import akka.actor.{Props, ActorSystem} -class MailboxSizeMetricsSpec extends WordSpec { +class MailboxSizeMetricsSpec extends TestKit(ActorSystem("mailbox-size-metrics-spec")) with WordSpecLike { "the mailbox size metrics instrumentation" should { "register a counter for mailbox size upon actor creation" in { + val target = system.actorOf(Props.empty, "sample") + Metrics.registry.getHistograms.get("akka://mailbox-size-metrics-spec/sample:MAILBOX") } } } |