Examples of KitchenSink


Examples of com.google.appengine.datanucleus.test.jdo.KitchenSink

    entity.setProperty("an extra property", "yar!");
    assertEquals(sameEntity.getProperties(), entity.getProperties());
  }

  public void testKitchenSinkInsertWithNulls() throws EntityNotFoundException {
    KitchenSink allNulls = new KitchenSink();
    makePersistentInTxn(allNulls, TXN_START_END);
    Entity entityWithNulls = ds.get(KeyFactory.stringToKey(allNulls.key));
    assertNotNull(entityWithNulls);

    // now create a KitchenSink with non-null values
    KitchenSink noNulls = KitchenSink.newKitchenSink();
    makePersistentInTxn(noNulls, TXN_START_END);
    Entity entityWithoutNulls = ds.get(KeyFactory.stringToKey(noNulls.key));
    assertNotNull(entityWithoutNulls);

    assertEquals(entityWithNulls.getProperties().keySet(), entityWithoutNulls.getProperties().keySet());
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.