camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmuel...@apache.org
Subject svn commit: r955047 - /camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvMarshalPipeDelimiterTest.java
Date Tue, 15 Jun 2010 20:55:18 GMT
Author: cmueller
Date: Tue Jun 15 20:55:18 2010
New Revision: 955047

URL: http://svn.apache.org/viewvc?rev=955047&view=rev
Log:
only format changes forced by the source check

Modified:
    camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvMarshalPipeDelimiterTest.java

Modified: camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvMarshalPipeDelimiterTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvMarshalPipeDelimiterTest.java?rev=955047&r1=955046&r2=955047&view=diff
==============================================================================
--- camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvMarshalPipeDelimiterTest.java
(original)
+++ camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat/csv/CsvMarshalPipeDelimiterTest.java
Tue Jun 15 20:55:18 2010
@@ -32,9 +32,9 @@ import org.junit.Test;
  * @version $Revision: $
  */
 public class CsvMarshalPipeDelimiterTest extends CamelTestSupport {
-	
-	@EndpointInject(uri = "mock:result")
-	private MockEndpoint result;
+
+    @EndpointInject(uri = "mock:result")
+    private MockEndpoint result;
 
     @Test
     public void testCsvMarshal() throws Exception {
@@ -44,15 +44,16 @@ public class CsvMarshalPipeDelimiterTest
 
         assertMockEndpointsSatisfied();
 
-        String body = result.getReceivedExchanges().get(0).getIn().getBody(String.class);
+        String body = result.getReceivedExchanges().get(0).getIn().getBody(
+                String.class);
         String[] lines = body.split("\n");
         assertEquals(2, lines.length);
         assertEquals("123|Camel in Action|1", lines[0]);
         assertEquals("124|ActiveMQ in Action|2", lines[1]);
     }
 
-	private List<Map<String, Object>> createBody() {
-	    List<Map<String, Object>> data = new ArrayList<Map<String, Object>>();
+    private List<Map<String, Object>> createBody() {
+        List<Map<String, Object>> data = new ArrayList<Map<String, Object>>();
 
         Map<String, Object> row1 = new LinkedHashMap<String, Object>();
         row1.put("orderId", 123);
@@ -65,7 +66,7 @@ public class CsvMarshalPipeDelimiterTest
         row2.put("item", "ActiveMQ in Action");
         row2.put("amount", 2);
         data.add(row2);
-	    return data;
+        return data;
     }
 
     @Override
@@ -73,15 +74,13 @@ public class CsvMarshalPipeDelimiterTest
         return new RouteBuilder() {
             @Override
             public void configure() throws Exception {
-            	CsvDataFormat csv = new CsvDataFormat();
-            	CSVConfig config = new CSVConfig();
-            	config.setDelimiter('|');
-            	csv.setConfig(config);
-            	
-                from("direct:start")
-                    .marshal(csv)
-                    .convertBodyTo(String.class)
-                    .to("mock:result");
+                CsvDataFormat csv = new CsvDataFormat();
+                CSVConfig config = new CSVConfig();
+                config.setDelimiter('|');
+                csv.setConfig(config);
+
+                from("direct:start").marshal(csv).convertBodyTo(String.class)
+                        .to("mock:result");
             }
         };
     }



Mime
View raw message