camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject svn commit: r1369490 - /camel/trunk/components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisInsertWithRollbackTest.java
Date Sat, 04 Aug 2012 22:10:30 GMT
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



Mime
View raw message