db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r418952 - /db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java
Date Tue, 04 Jul 2006 09:04:44 GMT
Author: tomdz
Date: Tue Jul  4 02:04:44 2006
New Revision: 418952

URL: http://svn.apache.org/viewvc?rev=418952&view=rev
Log:
Made alteration tests more robust

Modified:
    db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java

Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java?rev=418952&r1=418951&r2=418952&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java Tue Jul  4 02:04:44
2006
@@ -562,7 +562,9 @@
         }
         else
         {
-            assertEquals(new Integer(1), beans.get(0), "avalue");
+            Object avalue = ((DynaBean)beans.get(0)).get("avalue");
+
+            assertTrue((avalue == null) || new Integer(1).equals(avalue));
         }
     }
 



Mime
View raw message