@Test public void delete処理が正常に終了する() { EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME); assertNotNull(index); DavNodeAccessor davNodeAccessor = new DavNodeAccessor(index, TYPE_NAME, ROUTING_ID); DavNode davNode = createTestDavNode(); DcIndexResponse response = davNodeAccessor.create(davNode); assertNotNull(response); assertFalse(response.getId().equals("")); davNodeAccessor.delete(davNode); if (davNodeAccessor.getAds() != null) { JdbcAds ads = null; try { ads = new JdbcAds(); assertEquals(0, ads.countDavNode(INDEX_NAME)); } catch (Exception e) { fail(e.getMessage()); } } }
public DcDeleteResponse delete(DavNode davNode) { return this.delete(davNode, -1); }
DavNodeAccessor extends DataSourceAccessor { public DcDeleteResponse delete(DavNode davNode) { return this.delete(davNode, -1); } }
DavNodeAccessor extends DataSourceAccessor { public DcDeleteResponse delete(DavNode davNode) { return this.delete(davNode, -1); } DavNodeAccessor(EsIndex index, String name, String routingId); }
DavNodeAccessor extends DataSourceAccessor { public DcDeleteResponse delete(DavNode davNode) { return this.delete(davNode, -1); } DavNodeAccessor(EsIndex index, String name, String routingId); DcIndexResponse create(final DavNode davNode); DcIndexResponse create(String id, DavNode davNode); DcActionResponse createForFile(String id, DavNode davNode); DcDeleteResponse delete(DavNode davNode); DcDeleteResponse delete(DavNode davNode, long version); DcIndexResponse update(String id, DavNode davNode); DcIndexResponse update(String id, DavNode davNode, long version); DcIndexResponse updateForFile(String id, DavNode davNode, long version); }
DavNodeAccessor extends DataSourceAccessor { public DcDeleteResponse delete(DavNode davNode) { return this.delete(davNode, -1); } DavNodeAccessor(EsIndex index, String name, String routingId); DcIndexResponse create(final DavNode davNode); DcIndexResponse create(String id, DavNode davNode); DcActionResponse createForFile(String id, DavNode davNode); DcDeleteResponse delete(DavNode davNode); DcDeleteResponse delete(DavNode davNode, long version); DcIndexResponse update(String id, DavNode davNode); DcIndexResponse update(String id, DavNode davNode, long version); DcIndexResponse updateForFile(String id, DavNode davNode, long version);  }