MetadataProvider provider = new MetadataProvider(columnMetadata);
return provider;
}
public void test1() throws Exception {
ResultSetMetaDataImpl rmd = new ResultSetMetaDataImpl(exampleProvider());
assertEquals(false, rmd.isAutoIncrement(1));
assertEquals(false, rmd.isCaseSensitive(1));
assertEquals(false, rmd.isCurrency(1));
assertEquals(true, rmd.isDefinitelyWritable(1));
assertEquals(false, rmd.isReadOnly(1));
assertEquals(true, rmd.isSearchable(1));
assertEquals(true, rmd.isSigned(1));
assertEquals(true, rmd.isWritable(1));
assertEquals("vdb", rmd.getCatalogName(1)); //$NON-NLS-1$
assertEquals(null, rmd.getSchemaName(1));
assertEquals("table", rmd.getTableName(1)); //$NON-NLS-1$
assertEquals("col1", rmd.getColumnName(1)); //$NON-NLS-1$
assertEquals("string", rmd.getColumnTypeName(1)); //$NON-NLS-1$
}