diff options
author | Diego <diegolparra@gmail.com> | 2014-11-09 18:37:49 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-11-09 18:37:49 -0300 |
commit | cf07e7eada60d7a0d34b68b45b4b02c9c57f62ef (patch) | |
tree | f1c181c81a58c237d4ada4062a6997d55939afc8 /kamon-play/src/test/scala/kamon/play | |
parent | 5042eebf9f52bfd59fb623a1d6ea6451dd524cf7 (diff) | |
download | Kamon-cf07e7eada60d7a0d34b68b45b4b02c9c57f62ef.tar.gz Kamon-cf07e7eada60d7a0d34b68b45b4b02c9c57f62ef.tar.bz2 Kamon-cf07e7eada60d7a0d34b68b45b4b02c9c57f62ef.zip |
= play: fix compilation issue in tests
Diffstat (limited to 'kamon-play/src/test/scala/kamon/play')
-rw-r--r-- | kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala b/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala index baa5cd74..976e7bc0 100644 --- a/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala +++ b/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala @@ -225,16 +225,16 @@ object Routes extends Router.Routes { def routes: PartialFunction[RequestHeader, Handler] = { case Application_getRouted(params) ⇒ call { - createInvoker(controllers.Application.getRouted, - HandlerDef(this.getClass.getClassLoader, "", "controllers.Application", "getRouted", Nil, "GET", """some comment""", Routes.prefix + """getRouted""")).call(controllers.Application.getRouted) + invokeHandler(controllers.Application.getRouted, + HandlerDef(this, "controllers.Application", "getRouted", Nil, "GET", """some comment""", Routes.prefix + """getRouted""")) } case Application_postRouted(params) ⇒ call { - createInvoker(controllers.Application.postRouted, - HandlerDef(this.getClass.getClassLoader, "", "controllers.Application", "postRouted", Nil, "POST", """some comment""", Routes.prefix + """postRouted""")).call(controllers.Application.postRouted) + invokeHandler(controllers.Application.postRouted, + HandlerDef(this, "controllers.Application", "postRouted", Nil, "POST", """some comment""", Routes.prefix + """postRouted""")) } case Application_show(params) ⇒ call(params.fromPath[Int]("id", None)) { (id) ⇒ - createInvoker(controllers.Application.showRouted(id), - HandlerDef(this.getClass.getClassLoader, "", "controllers.Application", "showRouted", Seq(classOf[Int]), "GET", """""", Routes.prefix + """show/some/$id<[^/]+>""")).call(controllers.Application.showRouted(id)) + invokeHandler(controllers.Application.showRouted(id), + HandlerDef(this, "controllers.Application", "showRouted", Seq(classOf[Int]), "GET", """some comment""", Routes.prefix + """show/some/$id<[^/]+>""")) } } } |