Entity e = ds.get(TestUtils.createKey(pojo, pojo.getId()));
assertEquals(3, ((List<?>)e.getProperty("strLinkedHashSet")).size());
}
public void testUpdateLinkedHashSet_Reset() throws EntityNotFoundException {
HasMultiValuePropsJDO pojo = new HasMultiValuePropsJDO();
LinkedHashSet<String> set = Utils.newLinkedHashSet("a", "b");
pojo.setStrLinkedHashSet(set);
beginTxn();
pm.makePersistent(pojo);
commitTxn();
pm.close();
pm = pmf.getPersistenceManager();
beginTxn();
pojo = pm.getObjectById(HasMultiValuePropsJDO.class, pojo.getId());
set = Utils.newLinkedHashSet("a", "b", "zoom");
pojo.setStrLinkedHashSet(set);
commitTxn();
Entity e = ds.get(TestUtils.createKey(pojo, pojo.getId()));
assertEquals(3, ((List<?>)e.getProperty("strLinkedHashSet")).size());
}