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 2008/03/28 10:20:41 UTC
svn commit: r642157 -
/activemq/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvRouteTest.java
Author: davsclaus
Date: Fri Mar 28 02:20:34 2008
New Revision: 642157
URL: http://svn.apache.org/viewvc?rev=642157&view=rev
Log:
CAMEL-359 patch applied with thanks to Gert (I love your daltons example)
Modified:
activemq/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvRouteTest.java
Modified: activemq/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvRouteTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvRouteTest.java?rev=642157&r1=642156&r2=642157&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvRouteTest.java (original)
+++ activemq/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvRouteTest.java Fri Mar 28 02:20:34 2008
@@ -39,11 +39,11 @@
MockEndpoint resultEndpoint = resolveMandatoryEndpoint("mock:result", MockEndpoint.class);
resultEndpoint.expectedMessageCount(1);
- // START SNIPPET: marshal-result
+ // START SNIPPET: marshalInput
Map body = new HashMap();
body.put("foo", "abc");
body.put("bar", 123);
- // END SNIPPET: marshal-result
+ // END SNIPPET: marshalInput
template.sendBody("direct:start", body);
resultEndpoint.assertIsSatisfied();
@@ -63,14 +63,14 @@
endpoint.expectedMessageCount(1);
endpoint.assertIsSatisfied();
Exchange exchange = endpoint.getExchanges().get(0);
- // START SNIPPET : unmarshal-result
+ // START SNIPPET : unmarshalResult
List<List<String>> data = (List<List<String>>) exchange.getIn().getBody();
for (List<String> line : data) {
LOG.debug(
String.format("%s has an IQ of %s and is currently %s",
line.get(0), line.get(1), line.get(2)));
}
- // END SNIPPET : unmarshal-result
+ // END SNIPPET : unmarshalResult
}
protected RouteBuilder createRouteBuilder() {