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

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


    final IDataAccessSession session = filePersistence
        .createDataAccessSession();

    session.open();
    SubstitutionContainer bobContainer = new SubstitutionContainer();
    final SubstitutedBobSerialize1 bob = new SubstitutedBobSerialize1(1);
    bobContainer.setObject(bob);
    session.setObject(KEY, bobContainer);
    session.close(EnumFilePersistenceCloseAction.SAVE);

    session.open();
    bobContainer = (SubstitutionContainer) session.getObject(KEY);
    assertNotNull(BAD_BOB_CONTAINER_OBJECT1, bobContainer.getObject());
    final SubstitutedBobSerialize1 bobRead = (SubstitutedBobSerialize1) bobContainer
        .getObject();
    assertEquals(BAD_BOB_IDENTIFIER, 1, bob.getIdentifier());
    assertSame(READ_OBJECT_MUST_BE_THE_WROTE_OBJECT, bob, bobRead);
    session.close(EnumFilePersistenceCloseAction.SAVE);
View Full Code Here

TOP

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

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.