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 2016/01/08 17:40:59 UTC
[04/10] camel git commit: CAMEL-9491 : statement.maxRows not working
as expected camel jdbc
CAMEL-9491 : statement.maxRows not working as expected camel jdbc
add maxrows test
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f024f716
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f024f716
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f024f716
Branch: refs/heads/master
Commit: f024f7168a14f66387abe9581ee97af6aee1824f
Parents: 6778aa2
Author: gautric <ga...@redhat.com>
Authored: Fri Jan 8 16:49:43 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Jan 8 17:38:33 2016 +0100
----------------------------------------------------------------------
.../java/org/apache/camel/component/jdbc/JdbcFix9491Test.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/f024f716/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcFix9491Test.java
----------------------------------------------------------------------
diff --git a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcFix9491Test.java b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcFix9491Test.java
index 32928bf..dc80d42 100644
--- a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcFix9491Test.java
+++ b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcFix9491Test.java
@@ -45,7 +45,7 @@ public class JdbcFix9491Test extends AbstractJdbcTestSupport {
direct.sendBody("select * from customer");
assertMockEndpointsSatisfied();
- Assert.assertEquals(3,mock.getReceivedExchanges().get(1).getIn().getBody(List.class).size());
+ Assert.assertEquals(2,mock.getReceivedExchanges().get(1).getIn().getBody(List.class).size());
}
@@ -54,7 +54,7 @@ public class JdbcFix9491Test extends AbstractJdbcTestSupport {
return new RouteBuilder() {
public void configure() throws Exception {
from("direct:start").
- to("jdbc:testdb").to("mock:result");
+ to("jdbc:testdb?statement.maxRows=2").to("mock:result");
}
};
}