Package com.google.appengine.datanucleus.bugs.test

Examples of com.google.appengine.datanucleus.bugs.test.Issue129Entity


import com.google.appengine.datanucleus.bugs.test.Issue129Entity;

public class Issue129Test extends JDOBugTestCase {

  public void testInsert() {
    Issue129Entity entity;
    Issue129LifecycleListener listener = new Issue129LifecycleListener();
    pm.addInstanceLifecycleListener(listener, (Class[])null);

    // makePersistentAll
    entity = new Issue129Entity();
    pm.makePersistentAll(entity);
    assertTrue("PostStore didn't have id set when called for makePersistentAll", listener.idWasSetBeforePostStore());

    // makePersistent
    entity = new Issue129Entity();
    pm.makePersistent(entity);
    assertTrue("PostStore didn't have id set when called for makePersistent", listener.idWasSetBeforePostStore());
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.bugs.test.Issue129Entity

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.