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

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


    writeReadTest(true);
  }

  @Override
  protected void assertUnserialized(final Object unserialized) {
    final BobWithSerialPersistentFields read =
    /**/(BobWithSerialPersistentFields) unserialized;
    assertNull("not in serialization", read.getField3());
  }
View Full Code Here


  @Override
  protected ObjectAndReferenced createObjectToSerialize() {
    final ArrayList<Integer> list = new ArrayList<Integer>();
    list.add(789);
    final BobWithSerialPersistentFields bobWithSerialPersistentFields =
    /**/new BobWithSerialPersistentFields(100, list, Integer.valueOf(10));
    final Object[] referenceds = new Object[] { bobWithSerialPersistentFields
        .getField2()
    // bobWithSerialPersistentFields.getField3() }; Integer not a son
    // because is a basic type
    };
    return new ObjectAndReferenced(bobWithSerialPersistentFields,
View Full Code Here

        referenceds);
  }

  @Override
  protected Object[] modifyObjectToSerialize(final Object object) {
    final BobWithSerialPersistentFields bobWithSerialPersistentFields =
    /**/(BobWithSerialPersistentFields) object;
    bobWithSerialPersistentFields.setField2(new ArrayList<Integer>());
    return new Object[] { bobWithSerialPersistentFields.getField2() };
  }
View Full Code Here

TOP

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

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.