cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1091545 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOne2ManyTest.java
Date Tue, 12 Apr 2011 19:06:32 GMT
Author: aadamchik
Date: Tue Apr 12 19:06:32 2011
New Revision: 1091545

URL: http://svn.apache.org/viewvc?rev=1091545&view=rev
Log:
fixing derby failures ... really a shortcoming of the test framework

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOne2ManyTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOne2ManyTest.java?rev=1091545&r1=1091544&r2=1091545&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOne2ManyTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOne2ManyTest.java
Tue Apr 12 19:06:32 2011
@@ -154,7 +154,10 @@ public class CDOOne2ManyTest extends Ser
         // test database data
 
         Object[] aRow = tArtist.select();
-        assertEquals("XyzQ", aRow[1]);
+
+        // have to trim CHAR column to ensure consistent comparison results across DB's
+        // should really be using VARCHAR in this test
+        assertEquals("XyzQ", String.valueOf(aRow[1]).trim());
 
         Object[] pRow = tPainting.select();
         assertEquals("1", pRow[1]);



Mime
View raw message