db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1839281 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java
Date Mon, 27 Aug 2018 08:54:31 GMT
Author: tv
Date: Mon Aug 27 08:54:31 2018
New Revision: 1839281

URL: http://svn.apache.org/viewvc?rev=1839281&view=rev
Log:
Make execution sequence predictable

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

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java?rev=1839281&r1=1839280&r2=1839281&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java (original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java Mon
Aug 27 08:54:31 2018
@@ -21,8 +21,8 @@ package org.apache.torque;
 
 import java.sql.Connection;
 import java.sql.ResultSet;
-import java.util.HashMap;
 import java.util.HashSet;
+import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -1245,7 +1245,7 @@ public class DataTest extends BaseDataba
                 = {"abc", "bbc", "a_c", "a%c", "a\\c",
                    "a\"c", "a'c", "a?c", "a*c" };
 
-        Map<String, String> likeResults = new HashMap<String, String>();
+        Map<String, String> likeResults = new LinkedHashMap<String, String>();
 
         likeResults.put("a\\_c", "a_c");
         likeResults.put("a\\_%", "a_c");
@@ -1303,6 +1303,7 @@ public class DataTest extends BaseDataba
 
         for (Map.Entry<String, String> likeResult : likeResults.entrySet())
         {
+            // System.out.println("Key: " + likeResult.getKey() + " - Value: " + likeResult.getValue());
             Criteria criteria = new Criteria();
             criteria.where(
                     AuthorPeer.NAME,
@@ -1316,7 +1317,7 @@ public class DataTest extends BaseDataba
             catch (Exception e)
             {
                 throw new Exception(
-                        "error rxecuting select using like content "
+                        "error executing select using like content "
                         + likeResult.getKey(),
                     e);
             }



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