cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r544068 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLQueryTest.java
Date Mon, 04 Jun 2007 06:23:49 GMT
Author: aadamchik
Date: Sun Jun  3 23:23:48 2007
New Revision: 544068

URL: http://svn.apache.org/viewvc?view=rev&rev=544068
Log:
fixing test BigDecimal constructor - BigDecimal(int) is a JDK 1.5 thing , so we need a BigDecimal(double)
to stay 1.4 compatible

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLQueryTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLQueryTest.java?view=diff&rev=544068&r1=544067&r2=544068
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLQueryTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLQueryTest.java
Sun Jun  3 23:23:48 2007
@@ -120,7 +120,7 @@
 
         Painting p = (Painting) ps.get(0);
         assertEquals("P1", p.getPaintingTitle());
-        assertEquals(new BigDecimal(3000), p.getEstimatedPrice());
+        assertEquals(new BigDecimal(3000d), p.getEstimatedPrice());
     }
 
     public void testSelectFromWhereGreater() throws Exception {
@@ -134,7 +134,7 @@
 
         Painting p = (Painting) ps.get(0);
         assertEquals("P2", p.getPaintingTitle());
-        assertEquals(new BigDecimal(5000), p.getEstimatedPrice());
+        assertEquals(new BigDecimal(5000d), p.getEstimatedPrice());
     }
 
     public void testSelectFromWhereGreaterOrEqual() throws Exception {



Mime
View raw message