Package com.comcast.cns.model

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


     assertTrue("default sickly retry policy not set correctly",nsrp.getNumNoDelayRetries() == 0);
     assertTrue("default sickly retry policy not set correctly",nsrp.getBackOffFunction() == CnsBackoffFunction.geometric);
    
     assertTrue("defaultThrottlePolicy not set correctly", ndtp.getMaxReceivesPerSecond() == 19);
     try {
       JSONObject json = topicPolicy.toJSON();
       logger.debug("Json is:" + json.toString());
       assertTrue("toJSON fails to return proper JSON", json.has("http"));
       JSONObject httpJson = json.getJSONObject("http");
       assertTrue("toJSON fails to return proper JSON", httpJson.has("defaultHealthyRetryPolicy"));
       assertTrue("toJSON fails to return proper JSON", httpJson.has("defaultSicklyRetryPolicy"));
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.