DatabaseConnector extends StdCouchDbConnector { public boolean deleteById(String id) { if (super.contains(id)) { String rev = super.getCurrentRevision(id); super.delete(id, rev); return true; } return false; } DatabaseConnector(HttpClient httpClient, String dbName);  DatabaseConnector(Supplier<HttpClient> httpClient, String dbName);  DatabaseConnector(HttpClient httpClient, String dbName, MapperFactory mapperFactory); private  DatabaseConnector(String dbName, DatabaseInstance instance, MapperFactory mapperFactory); Optional<Status> restrictAccessToAdmins(); boolean add(T document); T get(Class<T> type, String id); List<T> get(Class<T> type, Collection<String> ids, boolean ignoreNotFound); List<T> get(Class<T> type, Collection<String> ids); @Override void update(Object document); boolean contains(String id); boolean deleteById(String id); String getDbName(); DatabaseInstance getInstance(); List<DocumentOperationResult> deleteIds(Collection<String> ids, Class<T> type);  }
@Test public void testDeleteDocumentById() throws Exception { assertTrue(connector.deleteById(id)); assertFalse(connector.deleteById(id)); }