cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r589133 - /cayenne/main/tags/3.0M2/cayenne/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextPerformQueryAPITest.java
Date Sat, 27 Oct 2007 15:20:40 GMT
Author: aadamchik
Date: Sat Oct 27 08:20:40 2007
New Revision: 589133

URL: http://svn.apache.org/viewvc?rev=589133&view=rev
Log:
oracle BigDecimal vs. Integer issue fix

Modified:
    cayenne/main/tags/3.0M2/cayenne/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextPerformQueryAPITest.java

Modified: cayenne/main/tags/3.0M2/cayenne/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextPerformQueryAPITest.java
URL: http://svn.apache.org/viewvc/cayenne/main/tags/3.0M2/cayenne/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextPerformQueryAPITest.java?rev=589133&r1=589132&r2=589133&view=diff
==============================================================================
--- cayenne/main/tags/3.0M2/cayenne/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextPerformQueryAPITest.java
(original)
+++ cayenne/main/tags/3.0M2/cayenne/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextPerformQueryAPITest.java
Sat Oct 27 08:20:40 2007
@@ -104,8 +104,8 @@
         assertEquals(1, artists.size());
 
         Artist artist = (Artist) artists.get(0);
-        assertEquals(new Integer(33002), artist.getObjectId().getIdSnapshot().get(
-                Artist.ARTIST_ID_PK_COLUMN));
+        assertEquals(33002, ((Number) artist.getObjectId().getIdSnapshot().get(
+                Artist.ARTIST_ID_PK_COLUMN)).intValue());
     }
 
     public void testNonSelectingQueryString() throws Exception {



Mime
View raw message