camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r721333 - in /activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf: CxfCustomizedExceptionTest.java CxfMessageStreamExceptionTest.java
Date Fri, 28 Nov 2008 04:16:32 GMT
Author: ningjiang
Date: Thu Nov 27 20:16:31 2008
New Revision: 721333

URL: http://svn.apache.org/viewvc?rev=721333&view=rev
Log:
CAMEL-1124 added the wiki snippet comments

Modified:
    activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java
    activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfMessageStreamExceptionTest.java

Modified: activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java?rev=721333&r1=721332&r2=721333&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java
(original)
+++ activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java
Thu Nov 27 20:16:31 2008
@@ -55,6 +55,7 @@
 
     private Bus bus;
 
+    // START SNIPPET: FaultDefine
     static {
         SOAP_FAULT = new SoapFault(EXCEPTION_MESSAGE, SoapFault.FAULT_CODE_CLIENT);
         Element detail = SOAP_FAULT.getOrCreateDetail();
@@ -62,6 +63,7 @@
         Text tn = doc.createTextNode(DETAIL_TEXT);
         detail.appendChild(tn);
     }
+    // END SNIPPET: FaultDefine
 
     @Override
     protected void setUp() throws Exception {
@@ -78,14 +80,17 @@
         //bus.shutdown(true);
         BusFactory.setDefaultBus(null);
     }
-
+    
     protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
+                // START SNIPPET: ThrowFault
                 from(routerEndpointURI).throwFault(SOAP_FAULT);
+                // END SNIPPET: ThrowFault
             }
         };
     }
+    
 
     protected CamelContext createCamelContext() throws Exception {
         return new DefaultCamelContext();

Modified: activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfMessageStreamExceptionTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfMessageStreamExceptionTest.java?rev=721333&r1=721332&r2=721333&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfMessageStreamExceptionTest.java
(original)
+++ activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfMessageStreamExceptionTest.java
Thu Nov 27 20:16:31 2008
@@ -26,16 +26,19 @@
     protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
+             // START SNIPPET: MessageStreamFault
                 from(routerEndpointURI).process(new Processor() {
 
                     public void process(Exchange exchange) throws Exception {
                         Message out = exchange.getOut();
+                        // Set the message body with the 
                         out.setBody(this.getClass().getResourceAsStream("SoapFaultMessage.xml"));
-                        // set the response code here
+                        // Set the response code here
                         out.setHeader(org.apache.cxf.message.Message.RESPONSE_CODE, new Integer(500));
                     }
 
                 });
+             // END SNIPPET: MessageStreamFault
             }
         };
     }



Mime
View raw message