You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2012/08/05 00:10:30 UTC
svn commit: r1369490 -
/camel/trunk/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisInsertWithRollbackTest.java
Author: bvahdat
Date: Sat Aug 4 22:10:29 2012
New Revision: 1369490
URL: http://svn.apache.org/viewvc?rev=1369490&view=rev
Log:
CAMEL-5485: More assert by MyBatisInsertWithRollbackTest.
Modified:
camel/trunk/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisInsertWithRollbackTest.java
Modified: camel/trunk/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisInsertWithRollbackTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisInsertWithRollbackTest.java?rev=1369490&r1=1369489&r2=1369490&view=diff
==============================================================================
--- camel/trunk/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisInsertWithRollbackTest.java (original)
+++ camel/trunk/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisInsertWithRollbackTest.java Sat Aug 4 22:10:29 2012
@@ -33,6 +33,10 @@ public class MyBatisInsertWithRollbackTe
template.sendBody("direct:start", null);
assertMockEndpointsSatisfied();
+
+ // there should be still 2 rows
+ Integer rows = template.requestBody("mybatis:count?statementType=SelectOne", null, Integer.class);
+ assertEquals("There should be 2 rows", 2, rows.intValue());
}
@Override