Package com.comcast.cns.persistence

Examples of com.comcast.cns.persistence.CNSCachedEndpointPublishJob.serialize()


    @Test
    public void serializeDeserializeNoSubUsingCache() throws CMBException {
        CNSMessage p1 = CNSMessageTest.getMessage("test", null, "test", "test-arn", "test-pub-userId");
        CNSCachedEndpointPublishJob job = new CNSCachedEndpointPublishJob(p1, Collections.EMPTY_LIST);
       
        String str = job.serialize();
        logger.debug("serializedFOrm=" + str);
       
        CNSEndpointPublishJob rec = CNSCachedEndpointPublishJob.parseInstance(str);
        if (!job.equals(rec)) {
            fail("orig!=rec. orig=" + job + " rec=" + rec);
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.