Package net.sf.joafip.store.entity.objectio.manager

Examples of net.sf.joafip.store.entity.objectio.manager.WithIntField


      ObjectIOInvalidClassException, ObjectIONotSerializableException,
      ObjectIODataRecordNotFoundException,
      ObjectIOClassNotFoundException, ObjectIODataCorruptedException,
      HeapException, BinaryConverterException,
      ObjectIOTooBigForSerializationException {
    final WithIntField withIntField = new WithIntField();
    withIntField.setIntField(0);
    final ObjectAndPersistInfo objectAndPersistInfo = createObjectAndItsPersistInfo(withIntField);
    /* initial write */
    WriteResult writeResult = write(objectAndPersistInfo);
    assertValueChangeForFirstWrite(writeResult);
    assertNoSonReferenced(writeResult);
    assertNoReferenceChange(writeResult);
    assertWroteType(writeResult, HelperBinaryConversion.INTEGER_TYPE);
    /* second write state not change */
    writeResult = write(objectAndPersistInfo);
    assertValueNotChangeForSameStateWrite(writeResult);
    assertNoSonReferenced(writeResult);
    assertNoReferenceChange(writeResult);
    /* third write state change */
    withIntField.setIntField(1);
    writeResult = write(objectAndPersistInfo);
    assertValueChangeSinceStateChange(writeResult);
    assertNoSonReferenced(writeResult);
    assertNoReferenceChange(writeResult);
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.objectio.manager.WithIntField

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.