@@ -0,0 +1,2283 @@
+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.HashMap;%0D%0Aimport java.util.Map;%0D%0A%0D%0Aimport org.apache.ddlutils.PlatformInfo;%0D%0Aimport org.apache.ddlutils.TestPlatformBase;%0D%0Aimport org.apache.ddlutils.model.Database;%0D%0A%0D%0A/**%0D%0A * Test the SqlBuilder (abstract) class.%0D%0A * %0D%0A * @author %3Ca href=%22mailto:martin@mvdb.net%22%3EMartin van den Bemt%3C/a%3E%0D%0A * @version $Revision: $%0D%0A */%0D%0Apublic class SqlBuilderTest extends TestPlatformBase %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 updateSql method%0D%0A     */%0D%0A    public void testUpdateSql()%0D%0A    %7B%0D%0A        SqlBuilder sqlBuilder = new SqlBuilderImpl(new PlatformInfo());%0D%0A        Database database = parseDatabaseFromString(xml);%0D%0A        Map map = new HashMap();%0D%0A        map.put(%22name%22, %22ddlutils%22);%0D%0A        map.put(%22id%22, new Integer(0));%0D%0A        String sql = sqlBuilder.getUpdateSql(database.getTable(0), map, false);%0D%0A        assertEquals(%22UPDATE %5C%22TestTable%5C%22 SET %5C%22name%5C%22 = 'ddlutils' WHERE %5C%22id%5C%22 = '0'%22, sql);%0D%0A    %7D%0D%0A%0D%0A%0D%0A    protected String getDatabaseName() %7B%0D%0A        return null;%0D%0A    %7D%0D%0A%0D%0A    public class SqlBuilderImpl extends SqlBuilder %7B%0D%0A%0D%0A        public SqlBuilderImpl(PlatformInfo info) %7B%0D%0A            super(info);%0D%0A        %7D%0D%0A    %7D%0D%0A%7D%0D%0A

Add test for updateSql. Far from complete, but a start..