Package com.box.boxjavalibv2.request.requestobjects

Source Code of com.box.boxjavalibv2.request.requestobjects.BoxCommentRequestObjectTest

package com.box.boxjavalibv2.request.requestobjects;

import org.junit.Assert;

import org.junit.Test;

import com.box.boxjavalibv2.exceptions.BoxJSONException;
import com.box.boxjavalibv2.requests.requestobjects.BoxCommentRequestObject;
import com.box.restclientv2.exceptions.BoxRestException;

public class BoxCommentRequestObjectTest {

    private static final String MESSAGE = "message";

    @Test
    public void testJSONHasAllFields() throws BoxRestException, BoxJSONException {
        String message = "testmessage123";
        BoxCommentRequestObject obj = BoxCommentRequestObject.updateCommentRequestObject(message);

        Assert.assertEquals(message, obj.getFromEntity(MESSAGE));
    }
}
TOP

Related Classes of com.box.boxjavalibv2.request.requestobjects.BoxCommentRequestObjectTest

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.