Package com.github.jreddit.retrieval.params

Examples of com.github.jreddit.retrieval.params.CommentSort


        String articleLink = "articleLink";
        String commentId = "commentId";
        int parentsShown = 0;
        int depth = 8;
        int limit = 20;
        CommentSort commentSort = CommentSort.CONFIDENCE;

        // Construct extra parameters
        String parameters = "";
        parameters += "&comment=" + commentId;
        parameters += "&context=" + parentsShown;
        parameters += "&depth=" + depth;
        parameters += "&limit=" + limit;
        parameters += "&sort=" + commentSort.value();
       
        // Stub response
        when(restClient.get(String.format(ApiEndpointUtils.SUBMISSION_COMMENTS, articleLink, parameters), null)).thenReturn(normalLayeredResponse);

        // Execute and verify response
View Full Code Here

TOP

Related Classes of com.github.jreddit.retrieval.params.CommentSort

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.