assertEquals(TagProperty.CARDINALITY_ONE_OR_MORE,prptCopy.getCardinality());
assertEquals(TagProperty.TYPE_DEFAULT,prptCopy.getPropertyType());
}
public void testUpdateTagProperty() throws Exception{
TagProperty prpt = new TagProperty();
prpt.setName("foobar");
prpt.setNamespacePrefix("xx");
int id = dao.createTagProperty(prpt);
prpt = dao.getTagProperty(id);
assertEquals("foobar",prpt.getName());
assertEquals(TagProperty.TYPE_DEFAULT,prpt.getPropertyType());
prpt.setPropertyType(TagProperty.TYPE_SPATIAL);
assertTrue(dao.updateTagProperty(prpt));
prpt = dao.getTagProperty(id);
assertEquals(TagProperty.TYPE_SPATIAL,prpt.getPropertyType());
}