You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2009/04/19 09:27:52 UTC

svn commit: r766433 - /camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHandle404Test.java

Author: davsclaus
Date: Sun Apr 19 07:27:51 2009
New Revision: 766433

URL: http://svn.apache.org/viewvc?rev=766433&view=rev
Log:
CAMEL-1447: Aligned and renamed the DSL names for try .. catch .. finally so they are the same in Java and Spring DSL. This one came up after I upgraded to new nexus. Was running fine yesterday./nexus start Must be my local repo and nexus got spooked.

Modified:
    camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHandle404Test.java

Modified: camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHandle404Test.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHandle404Test.java?rev=766433&r1=766432&r2=766433&view=diff
==============================================================================
--- camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHandle404Test.java (original)
+++ camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHandle404Test.java Sun Apr 19 07:27:51 2009
@@ -62,9 +62,9 @@
                 // use this sub route as indirection to handle the HttpOperationFailedException
                 // and set the data back as data on the exchange to not cause the exception to be thrown
                 from("direct:tohttp")
-                        .tryBlock()
+                        .doTry()
                             .to("http://localhost:8123/myserver?user=Camel")
-                        .handle(HttpOperationFailedException.class)
+                        .doCatch(HttpOperationFailedException.class)
                             .process(new Processor() {
                                 public void process(Exchange exchange) {
                                     // copy the caused exception values to the exchange as we want the response in the regular exchange