use of net.geoprism.registry.shapefile.ListTypeShapefileExporter in project geoprism-registry by terraframe.
the class ListTypeGeoObjectShapefileExporterTest method testExport.
@Test
@Request
public void testExport() throws IOException {
ListTypeShapefileExporter exporter = new ListTypeShapefileExporter(version, mdBusiness, mdAttributes, new JsonObject());
InputStream export = exporter.export();
Assert.assertNotNull(export);
IOUtils.copy(export, NullOutputStream.NULL_OUTPUT_STREAM);
}
use of net.geoprism.registry.shapefile.ListTypeShapefileExporter in project geoprism-registry by terraframe.
the class ListTypeGeoObjectShapefileExporterTest method testCreateFeatureType.
@Test
@Request
public void testCreateFeatureType() {
ListTypeShapefileExporter exporter = new ListTypeShapefileExporter(version, mdBusiness, mdAttributes, null);
SimpleFeatureType featureType = exporter.createFeatureType();
Assert.assertNotNull(featureType);
Assert.assertEquals(ListTypeShapefileExporter.GEOM, featureType.getGeometryDescriptor().getLocalName());
List<AttributeDescriptor> attributes = featureType.getAttributeDescriptors();
Assert.assertEquals(6, attributes.size());
}
Aggregations