cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1509353 - /cayenne/main/trunk/framework/cayenne-core-unpublished/src/test/java/org/apache/cayenne/query/OrderingTest.java
Date Thu, 01 Aug 2013 17:59:57 GMT
Author: aadamchik
Date: Thu Aug  1 17:59:56 2013
New Revision: 1509353

URL: http://svn.apache.org/r1509353
Log:
generics in unit tests

Modified:
    cayenne/main/trunk/framework/cayenne-core-unpublished/src/test/java/org/apache/cayenne/query/OrderingTest.java

Modified: cayenne/main/trunk/framework/cayenne-core-unpublished/src/test/java/org/apache/cayenne/query/OrderingTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-core-unpublished/src/test/java/org/apache/cayenne/query/OrderingTest.java?rev=1509353&r1=1509352&r2=1509353&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-core-unpublished/src/test/java/org/apache/cayenne/query/OrderingTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-core-unpublished/src/test/java/org/apache/cayenne/query/OrderingTest.java
Thu Aug  1 17:59:56 2013
@@ -137,7 +137,7 @@ public class OrderingTest extends TestCa
 
     public void testOrderList2() throws Exception {
         // compare on non-persistent property
-        List list = new ArrayList(3);
+        List<TestBean> list = new ArrayList<TestBean>(3);
 
         list.add(new TestBean(5));
         list.add(new TestBean(2));
@@ -151,7 +151,7 @@ public class OrderingTest extends TestCa
 
     public void testOrderListWithMultipleOrderings2() throws Exception {
         // compare on non-persistent property
-        List list = new ArrayList(6);
+        List<TestBean> list = new ArrayList<TestBean>(6);
 
         list.add(new TestBean("c", 1));
         list.add(new TestBean("c", 30));
@@ -165,7 +165,7 @@ public class OrderingTest extends TestCa
         orderings.add(new Ordering("integer", SortOrder.DESCENDING));
 
         // clone list and then order
-        List orderedList = new ArrayList(list);
+        List<TestBean> orderedList = new ArrayList<TestBean>(list);
         Ordering.orderList(orderedList, orderings);
 
         assertEquals(list.get(2), orderedList.get(0));



Mime
View raw message