Package com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsListJPA

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsListJPA.HasOneToManyListJPA


  public void testNewParentNewChild_NamedKeyOnChild() throws Exception {
    testNewParentNewChild_NamedKeyOnChild(new HasOneToManyListJPA(), TXN_START_END);
  }
  public void testNewParentNewChild_NamedKeyOnChild_NoTxn() throws Exception {
    testNewParentNewChild_NamedKeyOnChild(new HasOneToManyListJPA(), NEW_EM_START_END);
  }
View Full Code Here


    assertEquals(UnidirTop.class.getName(), count, countForClass(UnidirTop.class));
    assertEquals(HasKeyPkJPA.class.getName(), count, countForClass(HasKeyPkJPA.class));
  }

  public void testAddAlreadyPersistedChildToParent_NoTxnSameEm() {
    testAddAlreadyPersistedChildToParent_NoTxnSameEm(new HasOneToManyListJPA());
  }
View Full Code Here

  public void testAddAlreadyPersistedChildToParent_NoTxnSameEm() {
    testAddAlreadyPersistedChildToParent_NoTxnSameEm(new HasOneToManyListJPA());
  }

  public void testAddAlreadyPersistedChildToParent_NoTxnDifferentEm() {
    testAddAlreadyPersistedChildToParent_NoTxnDifferentEm(new HasOneToManyListJPA());
  }
View Full Code Here

  }
  public void testAddQueriedParentToBidirChild_NoTxn() throws Exception {
    testAddQueriedParentToBidirChild(NEW_EM_START_END);
  }
  private void testAddQueriedParentToBidirChild(StartEnd startEnd) throws Exception {
    testAddQueriedParentToBidirChild(new HasOneToManyListJPA(), new BidirTopList(),
  startEnd);
    testAddQueriedParentToBidirChild(new HasOneToManyListJPA(), new BidirMiddleList(),
  startEnd);
    testAddQueriedParentToBidirChild(new HasOneToManyListJPA(), new BidirBottomList(),
  startEnd);
  }
View Full Code Here

  }
  public void testAddFetchedParentToBidirChild_NoTxn() throws Exception {
    testAddFetchedParentToBidirChild(NEW_EM_START_END);
  }
  private void testAddFetchedParentToBidirChild(StartEnd startEnd) throws Exception {
    testAddFetchedParentToBidirChild(new HasOneToManyListJPA(), new BidirBottomList(),
        startEnd);
    testAddFetchedParentToBidirChild(new HasOneToManyListJPA(), new BidirMiddleList(),
        startEnd);
    testAddFetchedParentToBidirChild(new HasOneToManyListJPA(), new BidirTopList(),
        startEnd);
  }
View Full Code Here

  }
  public void testOnlyOneParentPutOnParentAndChildUpdate_NoTxn() throws Throwable {
    testOnlyOneParentPutOnParentAndChildUpdate(NEW_EM_START_END);
  }
  private void testOnlyOneParentPutOnParentAndChildUpdate(StartEnd startEnd) throws Throwable {
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManyListJPA(), new BidirTopList(),
  startEnd);
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManyListJPA(), new BidirMiddleList(),
  startEnd);
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManyListJPA(), new BidirBottomList(),
  startEnd);
  }
View Full Code Here

  }
  public void testOnlyOnePutOnChildUpdate_NoTxn() throws Throwable {
    testOnlyOnePutOnChildUpdate(NEW_EM_START_END);
  }
  private void testOnlyOnePutOnChildUpdate(StartEnd startEnd) throws Throwable {
    testOnlyOnePutOnChildUpdate(new HasOneToManyListJPA(), new BidirTopList(),
  startEnd);
    testOnlyOnePutOnChildUpdate(new HasOneToManyListJPA(), new BidirMiddleList(),
  startEnd);
    testOnlyOnePutOnChildUpdate(new HasOneToManyListJPA(), new BidirBottomList(),
  startEnd);
  }
View Full Code Here

  }

  public void testOnlyOneParentPutOnChildDelete() throws Throwable {
    // 1 put to remove the keys
    int expectedUpdatePuts = 1;
    testOnlyOneParentPutOnChildDelete(new HasOneToManyListJPA(), new BidirTopList(),
                                      TXN_START_END, expectedUpdatePuts);
  }
View Full Code Here

  }

  public void testOnlyOneParentPutOnChildDelete_NoTxn() throws Throwable {
    // updates are now atomic when non-tx, so get 1 after each collection clear and one for the update.
    int expectedUpdatePuts = 5;
    testOnlyOneParentPutOnChildDelete(new HasOneToManyListJPA(), new BidirTopList(),
                                      NEW_EM_START_END, expectedUpdatePuts);
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsListJPA.HasOneToManyListJPA

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.