Repository: camel Updated Branches: refs/heads/master 9ae26bc7a -> 9050c7793
Fixed scala compiler warnings Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/43d1462f Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/43d1462f Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/43d1462f Branch: refs/heads/master Commit: 43d1462f84a0277dbac86f94295e1d11d56f940f Parents: 9ae26bc Author: Claus Ibsen <davscl...@apache.org> Authored: Thu Jul 24 10:13:19 2014 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu Jul 24 10:13:19 2014 +0200 ---------------------------------------------------------------------- .../test/scala/org/apache/camel/scala/routeSpec.scala | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/43d1462f/components/camel-scala/src/test/scala/org/apache/camel/scala/routeSpec.scala ---------------------------------------------------------------------- diff --git a/components/camel-scala/src/test/scala/org/apache/camel/scala/routeSpec.scala b/components/camel-scala/src/test/scala/org/apache/camel/scala/routeSpec.scala index 74eeaae..dd6ba2a 100644 --- a/components/camel-scala/src/test/scala/org/apache/camel/scala/routeSpec.scala +++ b/components/camel-scala/src/test/scala/org/apache/camel/scala/routeSpec.scala @@ -58,11 +58,15 @@ class RouteSpec extends FunSpec with CamelSpec with MustMatchers with Preamble { } it("should raise exception when trying to set In when function returns Unit") { def fn(i: Int) { } - evaluating { processExchange(in(classOf[Int]) {fn _} .toIn) { _.in = 1} } must produce [RuntimeTransformException] + a [RuntimeTransformException] should be thrownBy { + processExchange(in(classOf[Int]) {fn _} .toIn) { _.in = 1} + } } it("should raise exception when trying to set Out when function returns Unit") { def fn(i: Int) { } - evaluating { processExchange(in(classOf[Int]) {fn _} .toOut) { _.in = 1} } must produce [RuntimeTransformException] + a [RuntimeTransformException] should be thrownBy { + processExchange(in(classOf[Int]) {fn _} .toOut) { _.in = 1} + } } } describe("Predicate/DSL") { @@ -71,7 +75,9 @@ class RouteSpec extends FunSpec with CamelSpec with MustMatchers with Preamble { } it("should raise exception when trying to filter when function returns Unit") { def fn(i: Int) { } - evaluating { filterExchange(in(classOf[Int]) {fn _}) { _.in = 1} } must produce [RuntimeTransformException] + a [RuntimeTransformException] should be thrownBy { + filterExchange(in(classOf[Int]) {fn _}) { _.in = 1} + } } } describe("PartialFunction/DSL") {