Package net.sf.joafip.entity.rel400

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


    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();

    final Element element = Element.newInstance(instanceFactory);
    element.addNameSpace(HELLO);
    final Element clone = element.clone();
    List<String> list = clone.getAdditionalNamespaces();
    assertEquals(BAD_CONTENT, HELLO, list.get(0));
    list = clone.getAdditionalNamespacesList();
    assertEquals(BAD_CONTENT, HELLO, list.get(0));

    session.close();
    filePersistence.close();
  }
View Full Code Here


      FilePersistenceTooBigForSerializationException {

    IFilePersistence filePersistence = createFilePersistence(true);
    IDataAccessSession session = filePersistence.createDataAccessSession();
    session.open();
    Item item = new Item(0, "value");
    session.setObject("key", item);
    session.closeAndWait(EnumFilePersistenceCloseAction.SAVE);
    filePersistence.close();

    filePersistence = createFilePersistence(false);
    session = filePersistence.createDataAccessSession();
    session.open();
    item = (Item) session.getObject("key");
    assertEquals("bad state", 0, item.getIdentifier());
    assertEquals("bad state", "value", item.getValue());
    session.closeAndWait(EnumFilePersistenceCloseAction.SAVE);
    filePersistence.close();
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.entity.rel400.BobAsDelegateNotifyDelegating

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.