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

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


    if (ds.getCurrentTransaction(null) != null) {
      commitTxn();
      beginTxn();
    }

    HasMultiValuePropsJDO pojo = pm.getObjectById(HasMultiValuePropsJDO.class, e.getKey().getId());
    assertEquals(Utils.newArrayList("a", "b", "c"), pojo.getStrArrayList());
  }
View Full Code Here


    if (ds.getCurrentTransaction(null) != null) {
      commitTxn();
      beginTxn();
    }

    HasMultiValuePropsJDO pojo = pm.getObjectById(HasMultiValuePropsJDO.class, e.getKey().getId());
    assertEquals(Utils.newArrayList("a", "b", "c"), pojo.getStrList());
  }
View Full Code Here

    if (ds.getCurrentTransaction(null) != null) {
      commitTxn();
      beginTxn();
    }

    HasMultiValuePropsJDO pojo = pm.getObjectById(HasMultiValuePropsJDO.class, e.getKey().getId());
    assertEquals(Utils.newLinkedList("a", "b", "c"), pojo.getStrLinkedList());
  }
View Full Code Here

    if (ds.getCurrentTransaction(null) != null) {
      commitTxn();
      beginTxn();
    }

    HasMultiValuePropsJDO pojo = pm.getObjectById(HasMultiValuePropsJDO.class, e.getKey().getId());
    assertEquals(Utils.newHashSet("a", "b", "c"), pojo.getStrHashSet());
  }
View Full Code Here

    if (ds.getCurrentTransaction(null) != null) {
      commitTxn();
      beginTxn();
    }

    HasMultiValuePropsJDO pojo = pm.getObjectById(HasMultiValuePropsJDO.class, e.getKey().getId());
    assertEquals(Utils.newHashSet("a", "b", "c"), pojo.getStrLinkedHashSet());
  }
View Full Code Here

    if (ds.getCurrentTransaction(null) != null) {
      commitTxn();
      beginTxn();
    }

    HasMultiValuePropsJDO pojo = pm.getObjectById(HasMultiValuePropsJDO.class, e.getKey().getId());
    assertEquals(Utils.newHashSet("a", "b", "c"), pojo.getStrSortedSet());
  }
View Full Code Here

    if (ds.getCurrentTransaction(null) != null) {
      commitTxn();
      beginTxn();
    }

    HasMultiValuePropsJDO pojo = pm.getObjectById(HasMultiValuePropsJDO.class, e.getKey().getId());
    assertEquals(Utils.newTreeSet("a", "b", "c"), pojo.getStrTreeSet());
  }
View Full Code Here

    if (ds.getCurrentTransaction(null) != null) {
      commitTxn();
      beginTxn();
    }

    HasMultiValuePropsJDO pojo = pm.getObjectById(HasMultiValuePropsJDO.class, e.getKey().getId());
    assertEquals(Utils.newArrayList(2, 3, 4), pojo.getIntColl());
  }
View Full Code Here

    oneNullElement.add(null);
    e.setProperty("strList", oneNullElement);
    Key key = ds.put(e);
    commitTxn();
    beginTxn();
    HasMultiValuePropsJDO pojo = pm.getObjectById(HasMultiValuePropsJDO.class, key);
    assertEquals(1, pojo.getStrList().size());
    assertNull(pojo.getStrList().get(0));
  }
View Full Code Here

TOP

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

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.