cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r550949 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
Date Tue, 26 Jun 2007 20:59:39 GMT
Author: aadamchik
Date: Tue Jun 26 13:59:38 2007
New Revision: 550949

URL: http://svn.apache.org/viewvc?view=rev&rev=550949
Log:
testing on MySQL - removing incorrect test condition

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java?view=diff&rev=550949&r1=550948&r2=550949
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
Tue Jun 26 13:59:38 2007
@@ -34,11 +34,9 @@
 import org.apache.art.LongEntity;
 import org.apache.art.SmallintTestEntity;
 import org.apache.art.TinyintTestEntity;
-import org.apache.cayenne.DataRow;
 import org.apache.cayenne.ObjectId;
 import org.apache.cayenne.exp.Expression;
 import org.apache.cayenne.exp.ExpressionFactory;
-import org.apache.cayenne.query.SQLTemplate;
 import org.apache.cayenne.query.SelectQuery;
 import org.apache.cayenne.unit.CayenneCase;
 
@@ -68,11 +66,6 @@
         LongEntity testRead = (LongEntity) context.performQuery(q).get(0);
         assertNotNull(testRead.getLongField());
         assertEquals(i, testRead.getLongField());
-
-        SQLTemplate q1 = new SQLTemplate(LongEntity.class, "select * from LONG_ENTITY");
-        q1.setFetchingDataRows(true);
-        DataRow row = (DataRow) context.performQuery(q1).get(0);
-        assertEquals(i, row.get("LONG_FIELD"));
 
         test.setLongField(null);
         context.commitChanges();



Mime
View raw message