@Test public void testFindConfig() { Catalogs instance = new Catalogs(conf); CatalogConfiguration catalog1 = instance.findConfiguration("catalog1"); assertEquals("catalog1", catalog1.getId()); CatalogConfiguration catalogMissing = instance.findConfiguration("catalogMissing"); assertNull(catalogMissing); }
public String getId() { return id; }
CatalogConfiguration { public String getId() { return id; } }
CatalogConfiguration { public String getId() { return id; } CatalogConfiguration(String id, String prefix, Configuration properties); }
CatalogConfiguration { public String getId() { return id; } CatalogConfiguration(String id, String prefix, Configuration properties); String getId(); boolean getDebug(); String getName(); String getType(); String getUrl(); List<CatalogQueryField> getQueryFields(); Configuration getProperties(); String getProperty(String name); String getProperty(String name, String defaultValue); @Override String toString(); }
CatalogConfiguration { public String getId() { return id; } CatalogConfiguration(String id, String prefix, Configuration properties); String getId(); boolean getDebug(); String getName(); String getType(); String getUrl(); List<CatalogQueryField> getQueryFields(); Configuration getProperties(); String getProperty(String name); String getProperty(String name, String defaultValue); @Override String toString(); static final String PROPERTY_DEBUG; static final String PROPERTY_NAME; static final String PROPERTY_USER; static final String PROPERTY_PASSWD; static final String PROPERTY_URL; static final String PROPERTY_TYPE; static final String PROPERTY_FIELDS; static final String FIELD_PREFIX; }