use of com.ibm.watson.developer_cloud.discovery.v1.model.DeleteConfigurationOptions in project java-sdk by watson-developer-cloud.
the class DiscoveryServiceIT method deleteConfigurationIsSuccessful.
@Test
public void deleteConfigurationIsSuccessful() {
Configuration createResponse = createTestConfig();
DeleteConfigurationOptions deleteOptions = new DeleteConfigurationOptions.Builder(environmentId, createResponse.getConfigurationId()).build();
deleteConfiguration(deleteOptions);
}
use of com.ibm.watson.developer_cloud.discovery.v1.model.DeleteConfigurationOptions in project java-sdk by watson-developer-cloud.
the class DiscoveryServiceTest method deleteConfigurationIsSuccessful.
@Test
public void deleteConfigurationIsSuccessful() throws InterruptedException {
server.enqueue(jsonResponse(deleteConfResp));
DeleteConfigurationOptions deleteRequest = new DeleteConfigurationOptions.Builder(environmentId, configurationId).build();
discoveryService.deleteConfiguration(deleteRequest).execute();
RecordedRequest request = server.takeRequest();
assertEquals(CONF2_PATH, request.getPath());
assertEquals(DELETE, request.getMethod());
}
Aggregations