use of com.ibm.watson.developer_cloud.discovery.v1.model.DeleteAllTrainingDataOptions in project java-sdk by watson-developer-cloud.
the class DiscoveryServiceTest method deleteAllCollectionTrainingDataIsSuccessful.
@Test
public void deleteAllCollectionTrainingDataIsSuccessful() throws InterruptedException {
MockResponse desiredResponse = new MockResponse().setResponseCode(204);
server.enqueue(desiredResponse);
DeleteAllTrainingDataOptions deleteRequest = new DeleteAllTrainingDataOptions.Builder(environmentId, collectionId).build();
discoveryService.deleteAllTrainingData(deleteRequest).execute();
RecordedRequest request = server.takeRequest();
assertEquals(TRAINING1_PATH, request.getPath());
assertEquals(DELETE, request.getMethod());
}
Aggregations