db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1687024 - in /db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque: adapter/DBOracleTest.java util/UniqueListTest.java
Date Tue, 23 Jun 2015 11:13:03 GMT
Author: tv
Date: Tue Jun 23 11:13:03 2015
New Revision: 1687024

URL: http://svn.apache.org/r1687024
Log:
Generify.

Modified:
    db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/adapter/DBOracleTest.java
    db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/util/UniqueListTest.java

Modified: db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/adapter/DBOracleTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/adapter/DBOracleTest.java?rev=1687024&r1=1687023&r2=1687024&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/adapter/DBOracleTest.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/adapter/DBOracleTest.java
Tue Jun 23 11:13:03 2015
@@ -32,7 +32,7 @@ public class DBOracleTest extends TestCa
      */
     public void testSelectColumnsForLimitOffset()
     {
-        UniqueList input = new UniqueList();
+        UniqueList<String> input = new UniqueList<String>();
         input.add("c1");
         input.add("c2");
         input.add("c1 a1");
@@ -50,7 +50,7 @@ public class DBOracleTest extends TestCa
         input.set(1, "t.c1");
         query.getSelectClause().addAll(input);
         new OracleAdapter().generateLimits(query, 0, 1);
-        UniqueList expected = new UniqueList(input);
+        UniqueList<String> expected = new UniqueList<String>(input);
         expected.set(1, "t.c1 a0");
         assertEquals(expected, query.getSelectClause());
 
@@ -60,7 +60,7 @@ public class DBOracleTest extends TestCa
         input.set(0, "t.a1");
         query.getSelectClause().addAll(input);
         new OracleAdapter().generateLimits(query, 0, 1);
-        expected = new UniqueList(input);
+        expected = new UniqueList<String>(input);
         expected.set(0, "t.a1 a0");
         assertEquals(query.getSelectClause(), expected);
 
@@ -69,7 +69,7 @@ public class DBOracleTest extends TestCa
         input.set(1, "t2.a1");
         query.getSelectClause().addAll(input);
         new OracleAdapter().generateLimits(query, 0, 1);
-        expected = new UniqueList(input);
+        expected = new UniqueList<String>(input);
         expected.set(0, "t.a1 a0");
         expected.set(1, "t2.a1 a3");
         assertEquals(expected, query.getSelectClause());

Modified: db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/util/UniqueListTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/util/UniqueListTest.java?rev=1687024&r1=1687023&r2=1687024&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/util/UniqueListTest.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/test/java/org/apache/torque/util/UniqueListTest.java
Tue Jun 23 11:13:03 2015
@@ -39,7 +39,7 @@ public class UniqueListTest extends Test
      */
     public void testNull()
     {
-        UniqueList uniqueList = new UniqueList();
+        UniqueList<Object> uniqueList = new UniqueList<Object>();
         Object o = null;
         boolean actualReturn = uniqueList.add(o);
         assertEquals("return value", false, actualReturn);
@@ -50,7 +50,7 @@ public class UniqueListTest extends Test
      */
     public void testUnique()
     {
-        UniqueList uniqueList = new UniqueList();
+        UniqueList<String> uniqueList = new UniqueList<String>();
         uniqueList.add("Table");
         uniqueList.add("TableA");
         uniqueList.add("Table");



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