@Test public void testListDatabases() throws SQLException { List<String> databases = new ArrayList<>(); databases.add("DB1"); databases.add("DB2"); when(jdbcMetadata.listDatabases()).thenReturn(databases); List<String> result = jdbcExplorer.listDatabases(); verify(jdbcMetadata, times(1)).listDatabases(); Assert.assertEquals(databases, result); }
@Override public List<String> listDatabases() throws SQLException { return jdbcMetadataDialect.listDatabases(); }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public List<String> listDatabases() throws SQLException { return jdbcMetadataDialect.listDatabases(); } }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public List<String> listDatabases() throws SQLException { return jdbcMetadataDialect.listDatabases(); } @Deprecated  JdbcExplorer();  JdbcExplorer(KylinConfig config); }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public List<String> listDatabases() throws SQLException { return jdbcMetadataDialect.listDatabases(); } @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> listDatabases() throws SQLException { return jdbcMetadataDialect.listDatabases(); } @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);  }