*/
public class UpdateValuesStringConverterJUnitTest {
@Test
public void run() {
DatabaseTable table = new DatabaseTable("Orders", "");
DatabaseColumn[] columns = {
new DatabaseColumn(table, "OrderID", "int", 0, null, false, false),
new DatabaseColumn(table, "OrderDate", "date", 0, null, false, false),
new DatabaseColumn(table, "CustomerID", "int", 0, null, false, false),
new DatabaseColumn(table, "Status", "String", 0, null, false, false),
};
for (DatabaseColumn c : columns) {
table.addColumn(c);
}
String[] newValues = new String[] { "2007-07-05", "In process" };
DatabaseColumn[] updatedColumns = new DatabaseColumn[] { columns[1], columns[3] };
String s = UpdateValuesStringConverter.toString(updatedColumns, newValues);
test(table, newValues, updatedColumns, s);