Package com.bubble.serializer.objects

Examples of com.bubble.serializer.objects.PrivateObjectPojo


    buffer.flip();
    DeserializationContext dc = new DeserializationContext();
    Object object = dc.deserialize(buffer);
    assertNotNull("Object was null", object);
    assertTrue("Object is not a 'PrivateObjectPojo'", object instanceof PrivateObjectPojo);
    PrivateObjectPojo result = (PrivateObjectPojo)object;
    Pojo pojo = result.getPojo();
    assertNotNull("Field was null", pojo);   
    assertEquals("Value doesn't match", TEST_VALUE, pojo.getValue());
   
  }
View Full Code Here


    checkPojo(buffer, pojo);   
  }
 
  public void testPrivateObjectSerialize() {
    Pojo pojo = new Pojo(7);
    PrivateObjectPojo objPojo = new PrivateObjectPojo(pojo);
    ByteBuffer buffer = ByteBuffer.allocate(1024);
    SerializationContext sc = new SerializationContext();
    sc.serialize(objPojo, buffer);
    buffer.flip();
    checkClassDef(buffer, PrivateObjectPojo.class);
View Full Code Here

TOP

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

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.