db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1099679 - /db/ddlutils/trunk/src/test/java/org/apache/ddlutils/io/TestDataReaderAndWriter.java
Date Thu, 05 May 2011 04:56:19 GMT
Author: tomdz
Date: Thu May  5 04:56:19 2011
New Revision: 1099679

URL: http://svn.apache.org/viewvc?rev=1099679&view=rev
Log:
Fixed test to actually use table-name as the column name (for DDLUTILS-245)

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

Modified: db/ddlutils/trunk/src/test/java/org/apache/ddlutils/io/TestDataReaderAndWriter.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/test/java/org/apache/ddlutils/io/TestDataReaderAndWriter.java?rev=1099679&r1=1099678&r2=1099679&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/java/org/apache/ddlutils/io/TestDataReaderAndWriter.java (original)
+++ db/ddlutils/trunk/src/test/java/org/apache/ddlutils/io/TestDataReaderAndWriter.java Thu
May  5 04:56:19 2011
@@ -1630,7 +1630,7 @@ public class TestDataReaderAndWriter ext
     }
 
     /**
-     * Tests the reader & writer behavior when a column name is 'column'.
+     * Tests the reader & writer behavior when a column name is 'column-name'.
      */
     public void testColumnNameIsColumnName() throws Exception
     {
@@ -1657,7 +1657,7 @@ public class TestDataReaderAndWriter ext
     }
 
     /**
-     * Tests the reader & writer behavior when a column name is 'column'.
+     * Tests the reader & writer behavior when a column name is 'table-name'.
      */
     public void testColumnNameIsTableName() throws Exception
     {
@@ -1666,7 +1666,7 @@ public class TestDataReaderAndWriter ext
             "<database xmlns='" + DatabaseIO.DDLUTILS_NAMESPACE + "' name='test'>\n"
+
             "  <table name='test'>\n"+
             "    <column name='id' type='INTEGER' primaryKey='true' required='true'/>\n"+
-            "    <column name='the value' type='VARCHAR' size='50' required='true'/>\n"+
+            "    <column name='table-name' type='VARCHAR' size='50' required='true'/>\n"+
             "  </table>\n"+
             "</database>");
         String testedValue = "Some Text";
@@ -1674,13 +1674,13 @@ public class TestDataReaderAndWriter ext
         SqlDynaBean bean = (SqlDynaBean)model.createDynaBeanFor(model.getTable(0));
 
         bean.set("id", new Integer(1));
-        bean.set("the value", testedValue);
+        bean.set("table-name", testedValue);
 
         roundtripTest(model, bean, "UTF-8",
                       "<?xml version='1.0' encoding='UTF-8'?>\n" +
                       "<data>\n" +
                       "  <test id=\"1\">\n" +
-                      "    <column column-name=\"the value\">" + testedValue + "</column>\n"
+
+                      "    <column column-name=\"table-name\">" + testedValue + "</column>\n"
+
                       "  </test>\n" +
                       "</data>\n");
     }



Mime
View raw message