DbToolContextComponentFactory extends AbstractComponentFactory { static final String getCatalog(final String jdbcUrl) { if (jdbcUrl == null) { return null; } else if (jdbcUrl.startsWith(MSSQL_MARKER)) { return getMSSQLCatalog(jdbcUrl); } else { return getStandardCatalog(jdbcUrl); } }  @Override void init(ComponentRepository repo, LinkedHashMap<String, String> configuration); static DbToolContextComponentFactory.Meta meta(); @Override DbToolContextComponentFactory.Meta metaBean(); String getClassifier(); void setClassifier(String classifier); final Property<String> classifier(); DbConnector getDbConnector(); void setDbConnector(DbConnector dbConnector); final Property<DbConnector> dbConnector(); String getJdbcUrl(); void setJdbcUrl(String jdbcUrl); final Property<String> jdbcUrl(); String getSchema(); void setSchema(String schema); final Property<String> schema(); DbManagement getDbManagement(); void setDbManagement(DbManagement dbManagement); final Property<DbManagement> dbManagement(); String getSchemaNamesList(); void setSchemaNamesList(String schemaNamesList); final Property<String> schemaNamesList(); @Override DbToolContextComponentFactory clone(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void test_handleNull() { Validate.isTrue((getCatalog(null) == null), "null did not work"); }
@Test(expectedExceptions = OpenGammaRuntimeException.class) public void test_completeGarbage() { getCatalog(COMPLETE_GARBAGE); }