@Test public void test_update_Autnum() { UpdateResponse response; AutnumDto dto = new AutnumDto(); dto.setHandle("autnum-1"); List<EventDto> events = new ArrayList<EventDto>(); EventDto eventDto = new EventDto(); eventDto.setHandle("event-1"); eventDto.setEventActor("eventActor1"); List<LinkDto> links = new ArrayList<LinkDto>(); LinkDto linkDto = new LinkDto(); linkDto.setHandle("link-1"); links.add(linkDto); List<EntityHandleDto> entities = new ArrayList<EntityHandleDto>(); EntityHandleDto entityHandleDto = new EntityHandleDto(); entityHandleDto.setHandle("entityHandle-1"); entities.add(entityHandleDto); linkDto.setEntities(entities); eventDto.setLinks(links); events.add(eventDto); dto.setEvents(events); try { setContent200(dto.getUpdateUri()); response = client.update(dto); } catch (RdapClientException e) { response = null; } assertEquals(mockHttpServer.getRequestUrl(), "/u/autnum/autnum-1"); assertEquals(response.getHandle(), dto.getHandle()); assertEquals(response.getErrorCode(), 0); assertEquals(response.getSubErrorCode(), 0); assertEquals(response.getDescription().size(), 0); }
public UpdateResponse update(BaseDto dto) throws RdapClientException { return execute(dto, HttpMethodType.PUT); }
RdapUpdateClient extends RdapClient { public UpdateResponse update(BaseDto dto) throws RdapClientException { return execute(dto, HttpMethodType.PUT); } }
RdapUpdateClient extends RdapClient { public UpdateResponse update(BaseDto dto) throws RdapClientException { return execute(dto, HttpMethodType.PUT); } RdapUpdateClient(RdapClientConfig config); }
RdapUpdateClient extends RdapClient { public UpdateResponse update(BaseDto dto) throws RdapClientException { return execute(dto, HttpMethodType.PUT); } RdapUpdateClient(RdapClientConfig config); UpdateResponse create(BaseDto dto); UpdateResponse update(BaseDto dto); UpdateResponse deleteIp(String handle); UpdateResponse deleteDomain(String handle); UpdateResponse deleteEntity(String handle); UpdateResponse deleteNameserver(String handle); UpdateResponse deleteAutnum(String handle); }
RdapUpdateClient extends RdapClient { public UpdateResponse update(BaseDto dto) throws RdapClientException { return execute(dto, HttpMethodType.PUT); } RdapUpdateClient(RdapClientConfig config); UpdateResponse create(BaseDto dto); UpdateResponse update(BaseDto dto); UpdateResponse deleteIp(String handle); UpdateResponse deleteDomain(String handle); UpdateResponse deleteEntity(String handle); UpdateResponse deleteNameserver(String handle); UpdateResponse deleteAutnum(String handle);  }