@Test public void testDeleteDhcpRelayProfile() throws IOException, InterruptedException { setupMocks(null, HttpStatus.SC_OK); DhcpServiceApi client = new DhcpServiceApi(restClient); final CountDownLatch latch = new CountDownLatch(1); client.deleteDhcpRelayProfile("id", new com.google.common.util.concurrent.FutureCallback<Void>() { @Override public void onSuccess(Void result) { latch.countDown(); } @Override public void onFailure(Throwable t) { fail(t.toString()); latch.countDown(); } }); assertThat(latch.await(COUNTDOWNLATCH_AWAIT_TIMEOUT, TimeUnit.SECONDS), is(true)); }
public void deleteDhcpRelayProfile(String id, FutureCallback<Void> responseCallback) throws IOException { deleteAsync(SERVICE_PROFILES_BASE_PATH + "/" + id, HttpStatus.SC_OK, responseCallback); }
DhcpServiceApi extends NsxClientApi { public void deleteDhcpRelayProfile(String id, FutureCallback<Void> responseCallback) throws IOException { deleteAsync(SERVICE_PROFILES_BASE_PATH + "/" + id, HttpStatus.SC_OK, responseCallback); } }
DhcpServiceApi extends NsxClientApi { public void deleteDhcpRelayProfile(String id, FutureCallback<Void> responseCallback) throws IOException { deleteAsync(SERVICE_PROFILES_BASE_PATH + "/" + id, HttpStatus.SC_OK, responseCallback); } DhcpServiceApi(RestClient restClient); }
DhcpServiceApi extends NsxClientApi { public void deleteDhcpRelayProfile(String id, FutureCallback<Void> responseCallback) throws IOException { deleteAsync(SERVICE_PROFILES_BASE_PATH + "/" + id, HttpStatus.SC_OK, responseCallback); } DhcpServiceApi(RestClient restClient); void createDhcpRelayProfile(DhcpRelayProfileCreateSpec request,
                                     FutureCallback<DhcpRelayProfile> responseCallback); void getDhcpRelayProfile(String id,
                                  FutureCallback<DhcpRelayProfile> responseCallback); void deleteDhcpRelayProfile(String id,
                                     FutureCallback<Void> responseCallback); void createDhcpRelayService(DhcpRelayServiceCreateSpec request,
                                     FutureCallback<DhcpRelayService> responseCallback); void getDhcpRelayService(String id,
                                  FutureCallback<DhcpRelayService> responseCallback); void deleteDhcpRelayService(String id,
                                     FutureCallback<Void> responseCallback); }
DhcpServiceApi extends NsxClientApi { public void deleteDhcpRelayProfile(String id, FutureCallback<Void> responseCallback) throws IOException { deleteAsync(SERVICE_PROFILES_BASE_PATH + "/" + id, HttpStatus.SC_OK, responseCallback); } DhcpServiceApi(RestClient restClient); void createDhcpRelayProfile(DhcpRelayProfileCreateSpec request,
                                     FutureCallback<DhcpRelayProfile> responseCallback); void getDhcpRelayProfile(String id,
                                  FutureCallback<DhcpRelayProfile> responseCallback); void deleteDhcpRelayProfile(String id,
                                     FutureCallback<Void> responseCallback); void createDhcpRelayService(DhcpRelayServiceCreateSpec request,
                                     FutureCallback<DhcpRelayService> responseCallback); void getDhcpRelayService(String id,
                                  FutureCallback<DhcpRelayService> responseCallback); void deleteDhcpRelayService(String id,
                                     FutureCallback<Void> responseCallback); static final String SERVICE_PROFILES_BASE_PATH; static final String SERVICES_BASE_PATH; }