Package com.bubble.serializer.objects

Examples of com.bubble.serializer.objects.CyclePojo


    DeserializationContext dc = new DeserializationContext();   
   
    Object object = dc.deserialize(buffer);
    assertNotNull("Object was null", object);
    assertTrue("Object is not a 'CyclePojo'", object instanceof CyclePojo);
    CyclePojo pojo = (CyclePojo)object;
    assertSame("Cycle not found", pojo, pojo.getPojo());
   
  }
View Full Code Here


    value = buffer.getInt();
    assertEquals("Value doesn't match", SECOND_VALUE, value);
  }
 
  public void testCycle() {
    CyclePojo pojo = new CyclePojo(null);
    pojo.setPojo(pojo);
    ByteBuffer buffer = ByteBuffer.allocate(1024);
    SerializationContext sc = new SerializationContext();
    sc.serialize(pojo, buffer);   
    buffer.flip();
    checkClassDef(buffer, CyclePojo.class);
View Full Code Here

TOP

Related Classes of com.bubble.serializer.objects.CyclePojo

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.