@Test public void create処理にてAdsが例外を上げた場合でも正常に終了すること() { EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME); assertNotNull(index); ODataLinkAccessor linkAccessor = new ODataLinkAccessor(index, TYPE_NAME, ROUTING_ID); LinkDocHandler docHandler = createTestLinkDocHandler(); try { linkAccessor.setAds(new JdbcAdsMock()); } catch (Exception e1) { throw new RuntimeException(e1); } DcIndexResponse response = linkAccessor.create(docHandler); assertNotNull(response); assertFalse(response.getId().equals("")); }
public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); }
ODataLinkAccessor extends DataSourceAccessor { public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); } }
ODataLinkAccessor extends DataSourceAccessor { public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); } ODataLinkAccessor(EsIndex index, String name, String routingId); }
ODataLinkAccessor extends DataSourceAccessor { public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); } ODataLinkAccessor(EsIndex index, String name, String routingId); DcIndexResponse create(final LinkDocHandler docHandler); DcIndexResponse create(String id, LinkDocHandler docHandler); DcIndexResponse update(String id, LinkDocHandler docHandler); DcIndexResponse update(String id, LinkDocHandler docHandler, long version); DcDeleteResponse delete(final LinkDocHandler docHandler); DcDeleteResponse delete(final LinkDocHandler docHandler, long version); }
ODataLinkAccessor extends DataSourceAccessor { public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); } ODataLinkAccessor(EsIndex index, String name, String routingId); DcIndexResponse create(final LinkDocHandler docHandler); DcIndexResponse create(String id, LinkDocHandler docHandler); DcIndexResponse update(String id, LinkDocHandler docHandler); DcIndexResponse update(String id, LinkDocHandler docHandler, long version); DcDeleteResponse delete(final LinkDocHandler docHandler); DcDeleteResponse delete(final LinkDocHandler docHandler, long version);  }