@Test public void testListTables() throws SQLException { List<String> tables = new ArrayList<>(); tables.add("T1"); tables.add("T2"); String databaseName = "testDb"; when(jdbcMetadata.listTables(databaseName)).thenReturn(tables); List<String> result = jdbcExplorer.listTables(databaseName); verify(jdbcMetadata, times(1)).listTables(databaseName); Assert.assertEquals(tables, result); }
@Override public List<String> listTables(String schema) throws SQLException { return jdbcMetadataDialect.listTables(schema); }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public List<String> listTables(String schema) throws SQLException { return jdbcMetadataDialect.listTables(schema); } }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public List<String> listTables(String schema) throws SQLException { return jdbcMetadataDialect.listTables(schema); } @Deprecated  JdbcExplorer();  JdbcExplorer(KylinConfig config); }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public List<String> listTables(String schema) throws SQLException { return jdbcMetadataDialect.listTables(schema); } @Deprecated  JdbcExplorer();  JdbcExplorer(KylinConfig config); @Override List<String> listDatabases(); @Override List<String> listTables(String schema); @Override Pair<TableDesc, TableExtDesc> loadTableMetadata(String database, String table, String prj); @Override void createSampleDatabase(String database); @Override void loadSampleData(String tableName, String tmpDataDir); @Override void createSampleTable(TableDesc table); @Override void createWrapperView(String origTableName, String viewName); @Override List<String> getRelatedKylinResources(TableDesc table); @Override ColumnDesc[] evalQueryMetadata(String query); @Override void validateSQL(String query); }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public List<String> listTables(String schema) throws SQLException { return jdbcMetadataDialect.listTables(schema); } @Deprecated  JdbcExplorer();  JdbcExplorer(KylinConfig config); @Override List<String> listDatabases(); @Override List<String> listTables(String schema); @Override Pair<TableDesc, TableExtDesc> loadTableMetadata(String database, String table, String prj); @Override void createSampleDatabase(String database); @Override void loadSampleData(String tableName, String tmpDataDir); @Override void createSampleTable(TableDesc table); @Override void createWrapperView(String origTableName, String viewName); @Override List<String> getRelatedKylinResources(TableDesc table); @Override ColumnDesc[] evalQueryMetadata(String query); @Override void validateSQL(String query);  }