@Test public void catalogLoaderRegistry() throws SchemaCrawlerException { final CatalogLoaderRegistry registry = new CatalogLoaderRegistry(); assertThat(registry.hasDatabaseSystemIdentifier("test-db"), is(true)); assertThat(registry.lookupCatalogLoader("test-db"), is(not(nullValue()))); assertThat( registry.lookupCatalogLoader("test-db").getClass().getSimpleName(), is("TestCatalogLoader")); assertThat( registry.lookupCatalogLoader("test-db").getDatabaseSystemIdentifier(), is("test-db")); assertThat(registry.hasDatabaseSystemIdentifier("some-db"), is(false)); assertThat(registry.lookupCatalogLoader("some-db"), is(not(nullValue()))); assertThat( registry.lookupCatalogLoader("some-db").getClass().getSimpleName(), is("SchemaCrawlerCatalogLoader")); assertThat( registry.lookupCatalogLoader("some-db").getDatabaseSystemIdentifier(), is(nullValue())); }
public CatalogLoaderRegistry() throws SchemaCrawlerException { catalogLoaderRegistry = loadCatalogLoaderRegistry(); }
CatalogLoaderRegistry { public CatalogLoaderRegistry() throws SchemaCrawlerException { catalogLoaderRegistry = loadCatalogLoaderRegistry(); } }
CatalogLoaderRegistry { public CatalogLoaderRegistry() throws SchemaCrawlerException { catalogLoaderRegistry = loadCatalogLoaderRegistry(); } CatalogLoaderRegistry(); }
CatalogLoaderRegistry { public CatalogLoaderRegistry() throws SchemaCrawlerException { catalogLoaderRegistry = loadCatalogLoaderRegistry(); } CatalogLoaderRegistry(); boolean hasDatabaseSystemIdentifier(final String databaseSystemIdentifier); CatalogLoader lookupCatalogLoader(final String databaseSystemIdentifier); }
CatalogLoaderRegistry { public CatalogLoaderRegistry() throws SchemaCrawlerException { catalogLoaderRegistry = loadCatalogLoaderRegistry(); } CatalogLoaderRegistry(); boolean hasDatabaseSystemIdentifier(final String databaseSystemIdentifier); CatalogLoader lookupCatalogLoader(final String databaseSystemIdentifier);  }