Examples of BobASDelegatingListenDelegate


Examples of net.sf.joafip.entity.rel400.BobASDelegatingListenDelegate

      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException {
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    saveDoneFlag = false;
    BobASDelegatingListenDelegate bob = BobASDelegatingListenDelegate
        .newInstance(instanceFactory);
    assertTrue(MUST_SAVE, saveDoneFlag);
    saveDoneFlag = false;
    bob.action();
    assertTrue(MUST_SAVE, saveDoneFlag);
    session.setObject(KEY, bob);
    bob = null;// NOPMD
    session.close();

    session.open();
    bob = (BobASDelegatingListenDelegate) session.getObject(KEY);
    bob.action();
    session.close();
  }
View Full Code Here

Examples of net.sf.joafip.entity.rel400.BobASDelegatingListenDelegate

    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    assertNotNull(MUST_HAS_INSTANCE_FACTORY, instanceFactory);
    saveDoneFlag = false;

    BobASDelegatingListenDelegate bob = new BobASDelegatingListenDelegate(
        instanceFactory);

    assertTrue(MUST_SAVE, saveDoneFlag);
    saveDoneFlag = false;
    bob.action();
    assertTrue(MUST_SAVE, saveDoneFlag);
    session.setObject(KEY, bob);
    bob = null;// NOPMD
    session.close();

    session.open();
    bob = (BobASDelegatingListenDelegate) session.getObject(KEY);
    bob.action();
    session.close();
  }
View Full Code Here

Examples of net.sf.joafip.entity.rel400.BobASDelegatingListenDelegate

    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    assertNotNull(MUST_HAS_INSTANCE_FACTORY, instanceFactory);
    saveDoneFlag = false;

    BobASDelegatingListenDelegate bob = BobASDelegatingListenDelegate
        .newInstance(instanceFactory);

    assertTrue(MUST_SAVE, saveDoneFlag);
    saveDoneFlag = false;
    bob.action();
    assertTrue(MUST_SAVE, saveDoneFlag);
    session.setObject(KEY, bob);
    bob = null;// NOPMD
    session.close();

    session.open();
    bob = (BobASDelegatingListenDelegate) session.getObject(KEY);
    bob.action();
    session.close();
  }
View Full Code Here

Examples of net.sf.joafip.entity.rel400.BobASDelegatingListenDelegate

      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException, ProxyException {
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    assertNotNull(MUST_HAS_INSTANCE_FACTORY, instanceFactory);
    final BobASDelegatingListenDelegate bob = BobASDelegatingListenDelegate
        .newInstance(instanceFactory);
    assertTrue("must be a proxy", ProxyManager2.isProxyOrEnhanced(bob));
    assertTrue("must be unloaded", ProxyManager2.isUnloaded(bob));
    assertTrue("bad state saved", bob.isConstructed());
  }
View Full Code Here

Examples of net.sf.joafip.entity.rel400.BobASDelegatingListenDelegate

      FilePersistenceTooBigForSerializationException, ProxyException {
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    assertNotNull(MUST_HAS_INSTANCE_FACTORY, instanceFactory);

    session.open();
    BobASDelegatingListenDelegate bob = BobASDelegatingListenDelegate
        .newInstance(instanceFactory);
    BobAsDelegateNotifyDelegating delegate = bob.getDelegate();
    final long delegateDataRecordIdentifier = ProxyManager2
        .getObjectAndPersistInfo(delegate).dataRecordIdentifier.value;
    bob = null;// NOPMD unreference
    session.close(EnumFilePersistenceCloseAction.DO_NOT_SAVE);

    session.open();
    delegate = (BobAsDelegateNotifyDelegating) session
        .getObject(delegateDataRecordIdentifier);
    bob = delegate.getBobASDelegatingListenDelegate();
    assertNotNull("bob is in bad state", bob.getDelegate());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.