camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r924773 - /camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/MultiPartFormTest.java
Date Thu, 18 Mar 2010 13:44:18 GMT
Author: ningjiang
Date: Thu Mar 18 13:44:18 2010
New Revision: 924773

URL: http://svn.apache.org/viewvc?rev=924773&view=rev
Log:
CAMEL-1913 Added wiki doc tag in the code

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

Modified: camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/MultiPartFormTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/MultiPartFormTest.java?rev=924773&r1=924772&r2=924773&view=diff
==============================================================================
--- camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/MultiPartFormTest.java
(original)
+++ camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/MultiPartFormTest.java
Thu Mar 18 13:44:18 2010
@@ -69,19 +69,22 @@ public class MultiPartFormTest extends C
     protected RouteBuilder createRouteBuilder() throws Exception {
         return new RouteBuilder() {
             public void configure() throws Exception {
-               
+                // START SNIPPET: e1
                 from("jetty://http://localhost:9080/test").process(new Processor() {
 
                     public void process(Exchange exchange) throws Exception {
                         Message in = exchange.getIn();
                         assertEquals("Get a wrong attachement size", 1, in.getAttachments().size());
+                        // The file name is attachment id
                         DataHandler data = in.getAttachment("NOTICE.txt");
                         assertNotNull("Should get the DataHandle NOTICE.txt", data);
                         assertEquals("Get a wrong content type", "text/plain", data.getContentType());
+                        // The other form date can be get from the message header
                         exchange.getOut().setBody(in.getHeader("comment"));
                     }
                     
                 });
+                // END SNIPPET: e1
             }
         };
     }



Mime
View raw message