Filter filterUpdate = filterfac.id(filterfac.featureId("poi.3"));
store.modifyFeatures("NAME", "blah", filterUpdate);
transaction.commit();
ContentFeatureCollection coll = store.getFeatures();
FeatureIterator it= coll.features();
while (it.hasNext()) {
System.err.println(it.next());
}
assertEquals(3, coll.size());
coll = store.getFeatures( new Query(simpleTypeName1.getLocalPart(), filterfac.equals(filterfac.property("NAME"), filterfac.literal("mypoint"))) );
it= coll.features();
while (it.hasNext()) {
System.err.println(it.next());
}
assertEquals(1, coll.size());
SimpleFeature feature = coll.features().next();
assertEquals(feat.getAttributes(), feature.getAttributes());
coll = store.getFeatures( new Query(simpleTypeName1.getLocalPart(), filterRemove) );
assertEquals(0, coll.size());
coll = store.getFeatures( new Query(simpleTypeName1.getLocalPart(), filterUpdate) );
assertEquals(1, coll.size());
feature = coll.features().next();
assertEquals("blah", feature.getAttribute("NAME"));
}