@@ -0,0 +1,2526 @@
+package org.apache.ddlutils.platform;%0D%0A%0D%0A/*%0D%0A * Copyright 1999-2005 The Apache Software Foundation.%0D%0A * %0D%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0D%0A * you may not use this file except in compliance with the License.%0D%0A * You may obtain a copy of the License at%0D%0A * %0D%0A *      http://www.apache.org/licenses/LICENSE-2.0%0D%0A * %0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A * See the License for the specific language governing permissions and%0D%0A * limitations under the License.%0D%0A */%0D%0A%0D%0Aimport java.util.Map;%0D%0A%0D%0Aimport org.apache.commons.beanutils.DynaBean;%0D%0Aimport org.apache.ddlutils.TestPlatformBase;%0D%0Aimport org.apache.ddlutils.dynabean.SqlDynaBean;%0D%0Aimport org.apache.ddlutils.dynabean.SqlDynaClass;%0D%0Aimport org.apache.ddlutils.model.Database;%0D%0Aimport org.apache.ddlutils.model.Table;%0D%0A%0D%0A/**%0D%0A * Tests the %7B@link org.apache.ddlutils.PlatformImplBase%7D (abstract) class.%0D%0A * %0D%0A * @author Martin van den Bemt%0D%0A * @version $Revision: 279421 $%0D%0A */%0D%0Apublic class TestPlatformImplBase extends TestPlatformBase %0D%0A%7B%0D%0A%0D%0A    String xml = %22%3C?xml version='1.0' encoding='ISO-8859-1'?%3E%5Cn%22+%0D%0A                 %22%3Cdatabase name='ddlutils'%3E%5Cn%22+%0D%0A                 %22  %3Ctable name='TestTable'%3E%5Cn%22+%0D%0A                 %22    %3Ccolumn name='id' autoIncrement='true' type='INTEGER' primaryKey='true'/%3E%5Cn%22+%0D%0A                 %22    %3Ccolumn name='name' type='VARCHAR' size='15'/%3E%5Cn%22+%0D%0A                 %22  %3C/table%3E%5Cn%22+%0D%0A                 %22%3C/database%3E%22;%0D%0A%0D%0A    public void setUp()%0D%0A    %7B%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * Test the toColumnValues method%0D%0A     */%0D%0A    public void testToColumnValues()%0D%0A    %7B%0D%0A        Database database = parseDatabaseFromString(xml);%0D%0A        PlatformImplBase platform = new PlatformBase();%0D%0A        Table table = database.getTable(0);%0D%0A        SqlDynaClass clz = SqlDynaClass.newInstance(table);%0D%0A        DynaBean db = new SqlDynaBean(SqlDynaClass.newInstance(table));%0D%0A        db.set(%22name%22, %22name%22);%0D%0A        Map map = platform.toColumnValues(clz.getSqlDynaProperties(), db);%0D%0A%0D%0A        assertEquals(%22name%22, map.get(%22name%22));%0D%0A        assertEquals(true, map.containsKey(%22id%22));%0D%0A    %7D%0D%0A    %0D%0A %0D%0A    public class PlatformBase extends PlatformImplBase %0D%0A    %7B%0D%0A        public String getName() %0D%0A        %7B%0D%0A            return null;%0D%0A        %7D%0D%0A    %7D%0D%0A%0D%0A%0D%0A    protected String getDatabaseName() %7B%0D%0A        return null;%0D%0A    %7D%0D%0A%0D%0A    %0D%0A%7D%0D%0A

Add test for abstract PlatformImplBase.