assertEquals(0, table.getColumnCount());
}
public void testEmptyFileNoHeaderLine() throws Exception {
DataContext dc = new FixedWidthDataContext(new File("src/test/resources/empty_file.txt"),
new FixedWidthConfiguration(FixedWidthConfiguration.NO_COLUMN_NAME_LINE, "UTF8", 10));
assertEquals(1, dc.getDefaultSchema().getTableCount());
Table table = dc.getDefaultSchema().getTables()[0];
assertEquals("empty_file.txt", table.getName());
assertEquals(0, table.getColumnCount());