cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1098972 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
Date Tue, 03 May 2011 08:56:43 GMT
Author: aadamchik
Date: Tue May  3 08:56:42 2011
New Revision: 1098972

URL: http://svn.apache.org/viewvc?rev=1098972&view=rev
Log:
CAY-1560 CayenneCase tests conversion

NumericTypesTest - fixing data setup

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java?rev=1098972&r1=1098971&r2=1098972&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
Tue May  3 08:56:42 2011
@@ -70,6 +70,7 @@ public class NumericTypesTest extends Se
     protected void setUpAfterInjection() throws Exception {
         dbHelper.deleteAll("SMALLINT_TEST");
         dbHelper.deleteAll("TINYINT_TEST");
+        dbHelper.deleteAll("DECIMAL_PK_TST");
 
         tSmallintTest = new TableHelper(dbHelper, "SMALLINT_TEST");
         tSmallintTest.setColumns("ID", "SMALLINT_COL");
@@ -270,7 +271,9 @@ public class NumericTypesTest extends Se
         object.setDecimalPK(new BigDecimal("1.25"));
         context.commitChanges();
 
-        Map map = Collections.singletonMap("DECIMAL_PK", new BigDecimal("1.25"));
+        Map<String, BigDecimal> map = Collections.singletonMap(
+                "DECIMAL_PK",
+                new BigDecimal("1.25"));
         ObjectId syntheticId = new ObjectId("DecimalPKTestEntity", map);
         assertSame(object, context.localObject(syntheticId, null));
 
@@ -287,7 +290,8 @@ public class NumericTypesTest extends Se
         object.setDecimalPK(new Double(1.25));
         context.commitChanges();
 
-        Map map = Collections.singletonMap("DECIMAL_PK", new Double(1.25));
+        Map<String, Double> map = Collections
+                .singletonMap("DECIMAL_PK", new Double(1.25));
         ObjectId syntheticId = new ObjectId("DecimalPKTest1", map);
         assertSame(object, context.localObject(syntheticId, null));
     }



Mime
View raw message