Package net.sf.joafip.store.service.objectfortest

Examples of net.sf.joafip.store.service.objectfortest.BobWithSerialPersistentFieldsUnshared


  @Override
  protected ObjectAndReferenced createObjectToSerialize() {
    final BobSerialize object = new BobSerialize();
    object.setData("bonjour".getBytes());
    object.setIndex(456);
    final BobWithSerialPersistentFieldsUnshared bobWithSerialPersistentFieldsUnshared =
    /**/new BobWithSerialPersistentFieldsUnshared(object, object);
    final Object[] referenceds = new Object[] { object, object };
    return new ObjectAndReferenced(bobWithSerialPersistentFieldsUnshared,
        referenceds);
  }
View Full Code Here


        referenceds);
  }

  @Override
  protected Object[] modifyObjectToSerialize(final Object object) {
    final BobWithSerialPersistentFieldsUnshared bobWithSerialPersistentFieldsUnshared =
    /**/(BobWithSerialPersistentFieldsUnshared) object;
    bobWithSerialPersistentFieldsUnshared.setField1(new Bob1());
    return new Object[] {
        bobWithSerialPersistentFieldsUnshared.getField1(),
        bobWithSerialPersistentFieldsUnshared.getField2() };
  }
View Full Code Here

    writeReadTest(true);
  }

  @Override
  protected void assertUnserialized(final Object unserialized) {
    final BobWithSerialPersistentFieldsUnshared read =
    /**/(BobWithSerialPersistentFieldsUnshared) unserialized;
    final Object object1 = read.getField1();
    final Object object2 = read.getField2();
    assertEquals("must have same state", object1, object2);
    assertNotSame("must not be same since unchared", object1, object2);
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.service.objectfortest.BobWithSerialPersistentFieldsUnshared

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.