Package com.comcast.cns.model

Examples of com.comcast.cns.model.CNSRetryPolicy.toJSON()


        assertTrue(rpolicy.getBackOffFunction() == CnsBackoffFunction.linear);
        logger.debug("retryPolicy2: " + retryPolicy2);
        logger.debug("rpolicy is: " + rpolicy.toString());
        assertTrue(rpolicy.toString().equals(retryPolicy2));
       
        JSONObject respJSON = rpolicy.toJSON();
        assertTrue(respJSON.has("backoffFunction"));
        assertTrue(respJSON.getString("backoffFunction").equals("linear"));
        assertTrue(respJSON.has("numMaxDelayRetries"));
        assertTrue(respJSON.getInt("numMaxDelayRetries") == 4);
        assertTrue(respJSON.has("numMinDelayRetries"));
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.