camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject svn commit: r1297173 - in /camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc: JdbcRouteTest.java JdbcRouteUsingSqlSelectAliasTest.java
Date Mon, 05 Mar 2012 19:01:48 GMT
Author: bvahdat
Date: Mon Mar  5 19:01:47 2012
New Revision: 1297173

URL: http://svn.apache.org/viewvc?rev=1297173&view=rev
Log:
CAMEL-5062: Refer the Java Collection API classes by their interfaces and not through a specific
given implementation.

Modified:
    camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteTest.java
    camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteUsingSqlSelectAliasTest.java

Modified: camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteTest.java?rev=1297173&r1=1297172&r2=1297173&view=diff
==============================================================================
--- camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteTest.java
(original)
+++ camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteTest.java
Mon Mar  5 19:01:47 2012
@@ -16,7 +16,6 @@
  */
 package org.apache.camel.component.jdbc;
 
-import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
@@ -50,7 +49,7 @@ public class JdbcRouteTest extends Abstr
         // assertions of the response
         assertNotNull(out);
         assertNotNull(out.getOut());
-        List<HashMap<String, Object>> data = out.getOut().getBody(List.class);
+        List<Map<String, Object>> data = out.getOut().getBody(List.class);
         assertNotNull(data);
         assertEquals(3, data.size());
         Map<String, Object> row = data.get(0);

Modified: camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteUsingSqlSelectAliasTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteUsingSqlSelectAliasTest.java?rev=1297173&r1=1297172&r2=1297173&view=diff
==============================================================================
--- camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteUsingSqlSelectAliasTest.java
(original)
+++ camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteUsingSqlSelectAliasTest.java
Mon Mar  5 19:01:47 2012
@@ -16,7 +16,6 @@
  */
 package org.apache.camel.component.jdbc;
 
-import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
@@ -43,7 +42,7 @@ public class JdbcRouteUsingSqlSelectAlia
         // assertions of the response
         assertNotNull(out);
         assertNotNull(out.getOut());
-        List<HashMap<String, Object>> data = out.getOut().getBody(List.class);
+        List<Map<String, Object>> data = out.getOut().getBody(List.class);
         assertNotNull("out body could not be converted to a List - was: "
             + out.getOut().getBody(), data);
         assertEquals(3, data.size());



Mime
View raw message