Package com.bluetangstudio.searchcloud.client.request

Examples of com.bluetangstudio.searchcloud.client.request.DeleteDocumentRequest


    public void testDeleteDocument() throws IOException, ServiceException {

        RestSearchCloudClient client = new RestSearchCloudClient(new DefaultHttpClientFactory(), getUri(), "apikey");

        String modelId = "test_DeleteDocument";
        client.deleteDocument(new DeleteDocumentRequest(modelId, 10));

    }
View Full Code Here


    @Test
    public void testDeleteDocument() throws IOException, ServiceException {

        RestSearchCloudClient client = buildMockRestSearchCloudClient();
        String modelId = "test_DeleteDocument";
        client.deleteDocument(new DeleteDocumentRequest(modelId, 10));

    }
View Full Code Here

    }

    /** {@inheritDoc} */
    @Override
    public final void deleteDocument(String modelId, int documentId) throws IOException, ServiceException {
        deleteDocument(new DeleteDocumentRequest(modelId, documentId));
    }
View Full Code Here

*/
public class DeleteDocumentRequestBuilderTest extends RequestBuilderTestBase {

    @Test
    public void buildHttpUriRequest() {
        DeleteDocumentRequest delete = new DeleteDocumentRequest("DeleteDocumentRequestBuilderTest", 1);
        setTrackingVariables(delete);

        DeleteDocumentRequestBuilder builder = new DeleteDocumentRequestBuilder();
        HttpUriRequest httpUriRequest = builder.build(delete);

View Full Code Here

TOP

Related Classes of com.bluetangstudio.searchcloud.client.request.DeleteDocumentRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.