db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1335725 - /db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/sql/SqlBuilderTestOldCriteria.java
Date Tue, 08 May 2012 19:53:56 GMT
Author: tfischer
Date: Tue May  8 19:53:56 2012
New Revision: 1335725

URL: http://svn.apache.org/viewvc?rev=1335725&view=rev
Log:
TORQUE-7 fix test case
increase time limit for slow computer

Modified:
    db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/sql/SqlBuilderTestOldCriteria.java

Modified: db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/sql/SqlBuilderTestOldCriteria.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/sql/SqlBuilderTestOldCriteria.java?rev=1335725&r1=1335724&r2=1335725&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/sql/SqlBuilderTestOldCriteria.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/sql/SqlBuilderTestOldCriteria.java
Tue May  8 19:53:56 2012
@@ -484,7 +484,7 @@ public class SqlBuilderTestOldCriteria e
                     + " FROM table2 INNER JOIN table3"
                     + " ON table2.column2=table3.column3"
                     + " INNER JOIN table1"
-                    + " ON table2.column2=table1.column1",
+                    + " ON table1.column1=table2.column2",
                 query.toString());
     }
 
@@ -539,7 +539,7 @@ public class SqlBuilderTestOldCriteria e
                     + " FROM table2 INNER JOIN table3"
                     + " ON table2.column2=table3.column3"
                     + " RIGHT JOIN table1"
-                    + " ON table2.column2=table1.column1",
+                    + " ON table1.column1=table2.column2",
                 query.toString());
     }
 
@@ -572,7 +572,7 @@ public class SqlBuilderTestOldCriteria e
                     + " FROM table2 INNER JOIN table3"
                     + " ON table2.column2=table3.column3"
                     + " LEFT JOIN table1"
-                    + " ON table2.column2=table1.column1",
+                    + " ON table1.column1=table2.column2",
                 query.toString());
     }
 
@@ -1211,8 +1211,8 @@ public class SqlBuilderTestOldCriteria e
         long end =  System.currentTimeMillis();
         List<Object> replacements = query.getPreparedStatementReplacements();
         assertEquals(size, replacements.size());
-        // time limit 50 ms
-        assertTrue(end - start < 50L);
+        // time limit 100 ms
+        assertTrue(end - start < 100L);
     }
 
     public void testCriterionInString() throws Exception



---------------------------------------------------------------------
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