aboutsummaryrefslogtreecommitdiff
path: root/kamon-newrelic
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2013-12-18 20:41:20 -0300
committerIvan Topolnjak <ivantopo@gmail.com>2013-12-18 20:41:20 -0300
commit705f76aa41ebdf9384530e2e0d850a0ef703a5e6 (patch)
treed6026b84ca0f59823f5ead10291655b0ec7bf2a5 /kamon-newrelic
parent1d9305dc7a8ad2d6457b5ebe1635eb4838cf13a0 (diff)
downloadKamon-705f76aa41ebdf9384530e2e0d850a0ef703a5e6.tar.gz
Kamon-705f76aa41ebdf9384530e2e0d850a0ef703a5e6.tar.bz2
Kamon-705f76aa41ebdf9384530e2e0d850a0ef703a5e6.zip
more reformatted code
Diffstat (limited to 'kamon-newrelic')
-rw-r--r--kamon-newrelic/src/test/scala/kamon/newrelic/AgentSpec.scala11
1 files changed, 5 insertions, 6 deletions
diff --git a/kamon-newrelic/src/test/scala/kamon/newrelic/AgentSpec.scala b/kamon-newrelic/src/test/scala/kamon/newrelic/AgentSpec.scala
index 5bc632f7..28dcde79 100644
--- a/kamon-newrelic/src/test/scala/kamon/newrelic/AgentSpec.scala
+++ b/kamon-newrelic/src/test/scala/kamon/newrelic/AgentSpec.scala
@@ -15,13 +15,13 @@
* ========================================================== */
package kamon.newrelic
-import akka.testkit.{TestActor, TestProbe, TestKit}
-import akka.actor.{Props, ActorRef, ActorSystem}
+import akka.testkit.{ TestActor, TestProbe, TestKit }
+import akka.actor.{ Props, ActorRef, ActorSystem }
import org.scalatest.WordSpecLike
import kamon.AkkaExtensionSwap
import spray.can.Http
import akka.io.IO
-import akka.testkit.TestActor.{KeepRunning, AutoPilot}
+import akka.testkit.TestActor.{ KeepRunning, AutoPilot }
import spray.http._
import spray.http.HttpRequest
import spray.http.HttpResponse
@@ -43,7 +43,7 @@ class AgentSpec extends TestKit(ActorSystem("agent-spec")) with WordSpecLike {
fakeHttpManager.setAutoPilot(new TestActor.AutoPilot {
def run(sender: ActorRef, msg: Any): AutoPilot = {
msg match {
- case HttpRequest(_, uri, _, _, _) if rawMethodIs("get_redirect_host", uri) =>
+ case HttpRequest(_, uri, _, _, _) if rawMethodIs("get_redirect_host", uri) ⇒
sender ! jsonResponse(
"""
| {
@@ -53,7 +53,7 @@ class AgentSpec extends TestKit(ActorSystem("agent-spec")) with WordSpecLike {
println("Selecting Collector")
- case HttpRequest(_, uri, _, _, _) if rawMethodIs("connect", uri) =>
+ case HttpRequest(_, uri, _, _, _) if rawMethodIs("connect", uri) ⇒
sender ! jsonResponse(
"""
| {
@@ -77,7 +77,6 @@ class AgentSpec extends TestKit(ActorSystem("agent-spec")) with WordSpecLike {
}
})
-
AkkaExtensionSwap.swap(system, Http, new IO.Extension {
def manager: ActorRef = fakeHttpManager.ref
})