Examples of BoxFolderDeleteRequestObject


Examples of com.box.boxjavalibv2.requests.requestobjects.BoxFolderDeleteRequestObject

    @Test
    public void testRequestIsWellFormed() throws BoxRestException, AuthFatalFailureException {
        boolean recursive = true;
        String etag = "testetag123";
        String id = "testid456";
        BoxFolderDeleteRequestObject obj = BoxFolderDeleteRequestObject.deleteFolderRequestObject(recursive);
        obj.getRequestExtras().setIfMatch(etag);
        DeleteFolderRequest request = new DeleteFolderRequest(CONFIG, JSON_PARSER, id, obj);
        testRequestIsWellFormed(request, TestUtils.getConfig().getApiUrlAuthority(),
            TestUtils.getConfig().getApiUrlPath().concat(DeleteFolderRequest.getUri(id)), HttpStatus.SC_NO_CONTENT, RestMethod.DELETE);

        Assert.assertEquals(Boolean.toString(recursive), request.getQueryParams().get(Constants.RECURSIVE));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.