Package com.google.appengine.datanucleus.test.jdo

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


  public void testFetchNullDataWithDefaultValues() {
    Entity e = new Entity(NullDataWithDefaultValuesJDO.class.getSimpleName());
    ds.put(e);
    beginTxn();
    NullDataWithDefaultValuesJDO pojo =
        pm.getObjectById(NullDataWithDefaultValuesJDO.class, KeyFactory.keyToString(e.getKey()));
    assertNotNull(pojo.getArray());
    assertEquals(0, pojo.getArray().length);
    assertNotNull(pojo.getList());
    assertTrue(pojo.getList().isEmpty());
    assertNull(pojo.getString());
    commitTxn();
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jdo.NullDataWithDefaultValuesJDO

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.