CouchDbLocalConfigServiceInfoCreator extends LocalConfigServiceInfoCreator<CloudantServiceInfo> { @Override public CloudantServiceInfo createServiceInfo(final String id, final String uri) { try { return new CloudantServiceInfo(id, uri); } catch (URISyntaxException e) { LOG.logp(Level.WARNING, CouchDbLocalConfigServiceInfoCreator.class.getName(), "createServiceInfo", "Invalid URI: " + uri, e); return null; } } CouchDbLocalConfigServiceInfoCreator(); @Override CloudantServiceInfo createServiceInfo(final String id, final String uri);  }
@Test public void testCreateServiceInfoStringString() { CloudantServiceInfo info = creator.createServiceInfo("cloudant", "couchdb: assertEquals(new CloudantServiceInfo("cloudant", "user", "password", "user.cloudant.com", -1, "http: info = creator.createServiceInfo("cloudant", "couchdb: assertEquals(new CloudantServiceInfo("cloudant", null, null, "localhost", 5984, "http: info = creator.createServiceInfo("cloudant", "couchdb: assertEquals(new CloudantServiceInfo("cloudant", null, null, "couchdb", 1234, "http: }