diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2018-10-12 14:29:10 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2018-10-12 14:29:10 +0200 |
commit | a98ac16d26421561110a679edb765d64996a675e (patch) | |
tree | 0eae0f02f6aa2ad8c96da29acb9ddaa386d3f574 /kamon-core-tests | |
parent | 99ff807755a07e0ccfadadee8b414132edc6ad6c (diff) | |
download | Kamon-a98ac16d26421561110a679edb765d64996a675e.tar.gz Kamon-a98ac16d26421561110a679edb765d64996a675e.tar.bz2 Kamon-a98ac16d26421561110a679edb765d64996a675e.zip |
reorganize the HttpMessage abstractions
Diffstat (limited to 'kamon-core-tests')
-rw-r--r-- | kamon-core-tests/src/test/scala/kamon/instrumentation/HttpServerInstrumentationSpec.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kamon-core-tests/src/test/scala/kamon/instrumentation/HttpServerInstrumentationSpec.scala b/kamon-core-tests/src/test/scala/kamon/instrumentation/HttpServerInstrumentationSpec.scala index d334184d..c3c5f131 100644 --- a/kamon-core-tests/src/test/scala/kamon/instrumentation/HttpServerInstrumentationSpec.scala +++ b/kamon-core-tests/src/test/scala/kamon/instrumentation/HttpServerInstrumentationSpec.scala @@ -267,8 +267,8 @@ class HttpServerInstrumentationSpec extends WordSpec with Matchers with SpanInsp def noSpanMetricsHttpServer(): HttpServer = HttpServer.from("no-span-metrics", component = TestComponent, interface = TestInterface, port = 8082) def noopHttpServer(): HttpServer = HttpServer.from("noop", component = TestComponent, interface = TestInterface, port = 8083) - def fakeRequest(requestUrl: String, requestPath: String, requestMethod: String, headers: Map[String, String]): HttpRequest = - new HttpRequest { + def fakeRequest(requestUrl: String, requestPath: String, requestMethod: String, headers: Map[String, String]): HttpMessage.Request = + new HttpMessage.Request { override def url: String = requestUrl override def path: String = requestPath override def method: String = requestMethod @@ -276,11 +276,11 @@ class HttpServerInstrumentationSpec extends WordSpec with Matchers with SpanInsp override def readAll(): Map[String, String] = headers } - def fakeResponse(responseStatusCode: Int, headers: mutable.Map[String, String]): HttpResponse.Writable[HttpResponse] = - new HttpResponse.Writable[HttpResponse] { + def fakeResponse(responseStatusCode: Int, headers: mutable.Map[String, String]): HttpMessage.ResponseBuilder[HttpMessage.Response] = + new HttpMessage.ResponseBuilder[HttpMessage.Response] { override def statusCode: Int = responseStatusCode override def write(header: String, value: String): Unit = headers.put(header, value) - override def build(): HttpResponse = this + override def build(): HttpMessage.Response = this } def completedRequests(port: Int, statusCode: Int): Counter = { |