Author: ningjiang
Date: Wed Oct 8 00:15:21 2008
New Revision: 702744
URL: http://svn.apache.org/viewvc?rev=702744&view=rev
Log:
CAMEL-967 fixed the test error of IBatisRouteTest
Modified:
activemq/camel/trunk/components/camel-ibatis/src/test/java/org/apache/camel/component/ibatis/IBatisRouteTest.java
Modified:
activemq/camel/trunk/components/camel-ibatis/src/test/java/org/apache/camel/component/ibatis/IBatisRouteTest.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ibatis/src/test/java/org/apache/camel/component/ibatis/IBatisRouteTest.java?rev=702744&r1=702743&r2=702744&view=diff
==============================================================================
---
activemq/camel/trunk/components/camel-ibatis/src/test/java/org/apache/camel/component/ibatis/IBatisRouteTest.java
(original)
+++
activemq/camel/trunk/components/camel-ibatis/src/test/java/org/apache/camel/component/ibatis/IBatisRouteTest.java
Wed Oct 8 00:15:21 2008
@@ -28,7 +28,7 @@
* @version $Revision$
*/
public class IBatisRouteTest extends ContextTestSupport {
-
+
public void testSendAccountBean() throws Exception {
MockEndpoint endpoint = getMockEndpoint("mock:results");
endpoint.expectedMinimumMessageCount(1);
@@ -60,7 +60,8 @@
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() throws Exception {
- from("ibatis:selectAllAccounts").to("mock:results");
+ //Delaying the query so we will not get the
"java.sql.SQLException: Table not found in statement" on the slower box
+
from("timer://pollTheDatabase?delay=2000").to("ibatis:selectAllAccounts").to("mock:results");
from("direct:start").to("ibatis:insertAccount");
}