SimpleFeatureCollection one = source.getFeatures();
ShapefileDataStoreFactory maker = new ShapefileDataStoreFactory();
test(type, one, getTempFile(), maker, false);
test(type, one, getTempFile(), maker, true);
s.dispose();
}
private void test(SimpleFeatureType type, SimpleFeatureCollection one, File tmp,
ShapefileDataStoreFactory maker, boolean memorymapped) throws IOException,
MalformedURLException, Exception {