assertEquals( 5, count( "road" ) );
}
public void testWriterChangeName() throws Exception{
Query query = new Query("road");
PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
int count = 0;
while( writer.hasNext() ){
SimpleFeature f = writer.next();
f.setAttribute(1,"name "+(count+1));
writer.write();
count++;
}
writer.close();
assertEquals( 5, count );
assertEquals( 5, count( "road" ));
}