camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1461025 - /camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/RichTestUri.scala
Date Tue, 26 Mar 2013 08:55:48 GMT
Author: ningjiang
Date: Tue Mar 26 08:55:47 2013
New Revision: 1461025

URL: http://svn.apache.org/r1461025
Log:
CAMEL-6208 clean up the code

Modified:
    camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/RichTestUri.scala

Modified: camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/RichTestUri.scala
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/RichTestUri.scala?rev=1461025&r1=1461024&r2=1461025&view=diff
==============================================================================
--- camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/RichTestUri.scala
(original)
+++ camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/RichTestUri.scala
Tue Mar 26 08:55:47 2013
@@ -34,7 +34,6 @@ class RichTestUri(uri: String, support: 
 
   def !?(message: Any) = {
     message match {
-      case fn : (Exchange => Unit) => support.getTemplate.request(uri, new ScalaProcessor(fn))
       case processor: Processor => support.getTemplate.request(uri, processor)
       case body : Object => support.getTemplate.requestBody(uri, body)
     }
@@ -42,7 +41,6 @@ class RichTestUri(uri: String, support: 
 
   def !!(message: Any) = {
     message match {
-      case fn : (Exchange => Unit) => support.getTemplate.asyncSend(uri, new ScalaProcessor(fn))
       case exchange : Exchange => support.getTemplate.asyncSend(uri, exchange)
       case processor : Processor => support.getTemplate.asyncSend(uri, processor)
       case body : Object => support.getTemplate.asyncRequestBody(uri, body)



Mime
View raw message