db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1704087 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BitTest.java
Date Sat, 19 Sep 2015 20:10:53 GMT
Author: tfischer
Date: Sat Sep 19 20:10:53 2015
New Revision: 1704087

URL: http://svn.apache.org/viewvc?rev=1704087&view=rev
Log:
fix test error when tests are run in non-standard order

Modified:
    db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BitTest.java

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BitTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BitTest.java?rev=1704087&r1=1704086&r2=1704087&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BitTest.java
(original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BitTest.java
Sat Sep 19 20:10:53 2015
@@ -165,6 +165,8 @@ public class BitTest extends BaseDatabas
             // failing is "expected", so exit without error
             return;
         }
+        fillTables();
+
         // query data
         Criteria criteria = new Criteria()
                 .where(BitTypePeer.BIT_VALUE, new Boolean(true));
@@ -188,6 +190,8 @@ public class BitTest extends BaseDatabas
             // failing is "expected", so exit without error
             return;
         }
+        fillTables();
+
         Criteria criteria = new Criteria().where(
                 BitTypePeer.BIT_VALUE, new Boolean(false));
         List<BitType> bitTypeList = BitTypePeer.doSelect(criteria);



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message