Package com.rallydev.rest.request

Examples of com.rallydev.rest.request.DeleteRequest


        JsonObject deleteResult = new JsonObject();
        response.add("OperationResult", deleteResult);
        deleteResult.add("Errors", new JsonArray());
        deleteResult.add("Warnings", new JsonArray());

        DeleteRequest request = new DeleteRequest("/defect/1234");
        doReturn(new Gson().toJson(response)).when(api.client).doDelete(request.toUrl());
        DeleteResponse deleteResponse = api.delete(request);

        verify(api.client).doDelete(request.toUrl());
        Assert.assertTrue(deleteResponse.wasSuccessful());
    }
View Full Code Here

TOP

Related Classes of com.rallydev.rest.request.DeleteRequest

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.