Package com.comcast.cns.model

Examples of com.comcast.cns.model.CNSEndpointPublishJob.serialize()


      try {
        CNSMessage p1 = CNSMessageTest.getMessage("test", null, "test", "test-arn", "test-pub-userId");
          CNSEndpointPublishJob.CNSEndpointSubscriptionInfo subInfo = new CNSEndpointPublishJob.CNSEndpointSubscriptionInfo(CnsSubscriptionProtocol.cqs, "test-endpoint1", "test-sub-arn", false);
          CNSEndpointPublishJob j1 = new CNSEndpointPublishJob(p1, Arrays.asList(subInfo));
 
          String str = j1.serialize();
          CNSEndpointPublishJob rec = CNSEndpointPublishJob.parseInstance(str);
          if (!j1.equals(rec)) {
              fail("orig != rec. orig=" + j1 + " rec=" + rec);
          }
         
View Full Code Here


        for (int i = 0; i < 500; i++) {
            subInfos.add(new CNSEndpointPublishJob.CNSEndpointSubscriptionInfo(CnsSubscriptionProtocol.cqs, CMBTestingConstants.HTTP_ENDPOINT_BASE_URL + "info/1234" + i, "27daac76-34dd-47df-bd01-1f6e873584a0" + i, false));   
        }
       
        CNSEndpointPublishJob j1 = new CNSEndpointPublishJob(p1, subInfos);
        String str = j1.serialize();
        logger.info("size of serialized=" + str.length());
    }
       
    @Test
    public void serializeDeserializeNoSubUsingCache() throws CMBException {
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.