Entity e = ds.get(TestUtils.createKey(pojo, pojo.getId()));
assertEquals(3, ((List<?>)e.getProperty("strArrayList")).size());
}
public void testUpdateArrayList_Reset() throws EntityNotFoundException {
HasMultiValuePropsJPA pojo = new HasMultiValuePropsJPA();
ArrayList<String> list = Utils.newArrayList("a", "b");
pojo.setStrArrayList(list);
beginTxn();
em.persist(pojo);
commitTxn();
em.close();
em = emf.createEntityManager();
beginTxn();
pojo = em.find(HasMultiValuePropsJPA.class, pojo.getId());
list = Utils.newArrayList("a", "b", "zoom");
pojo.setStrArrayList(list);
commitTxn();
Entity e = ds.get(TestUtils.createKey(pojo, pojo.getId()));
assertEquals(3, ((List<?>)e.getProperty("strArrayList")).size());
}