Package com.bubble.serializer.objects

Examples of com.bubble.serializer.objects.ObjectPojo


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


      };
    };
   
    AbstractSerializeTest test3 = new AbstractSerializeTest(2000, 10) {
      protected Object createTestObject() {
        return new ObjectPojo(new Pojo(19));
      };
    };
   
    AbstractSerializeTest test4 = new AbstractSerializeTest(2000, 10) {
      protected Object createTestObject() {
View Full Code Here

    assertEquals("Value doesn't match", TEST_STRING, str);   
  }
 
  public void testObjectSerialize() {
    Pojo pojo = new Pojo(7);
    ObjectPojo objPojo = new ObjectPojo(pojo);
    ByteBuffer buffer = ByteBuffer.allocate(1024);
    SerializationContext sc = new SerializationContext();
    sc.serialize(objPojo, buffer);
    buffer.flip();
    checkClassDef(buffer, ObjectPojo.class);
View Full Code Here

TOP

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

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.