@Test public void update処理にてAdsが例外を上げた場合でも正常に終了すること() { EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME); assertNotNull(index); DavNodeAccessor davNodeAccessor = new DavNodeAccessor(index, TYPE_NAME, ROUTING_ID); DavNode davNode = createTestDavNode(); DcIndexResponse createResponse = davNodeAccessor.create(davNode); assertNotNull(createResponse); assertFalse(createResponse.getId().equals("")); try { davNodeAccessor.setAds(new JdbcAdsMock()); } catch (Exception e1) { throw new RuntimeException(e1); } long dateTime = new Date().getTime(); davNode.setUpdated(dateTime); DcIndexResponse updateResponse = davNodeAccessor.update(createResponse.getId(), davNode); assertNotNull(updateResponse); assertEquals(createResponse.getId(), updateResponse.getId()); }
public DcIndexResponse update(String id, DavNode davNode) { return this.update(id, davNode, -1); }
DavNodeAccessor extends DataSourceAccessor { public DcIndexResponse update(String id, DavNode davNode) { return this.update(id, davNode, -1); } }
DavNodeAccessor extends DataSourceAccessor { public DcIndexResponse update(String id, DavNode davNode) { return this.update(id, davNode, -1); } DavNodeAccessor(EsIndex index, String name, String routingId); }
DavNodeAccessor extends DataSourceAccessor { public DcIndexResponse update(String id, DavNode davNode) { return this.update(id, 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 DcIndexResponse update(String id, DavNode davNode) { return this.update(id, 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);  }