Files
spring-boot-rest/geotools/src/test/java/com/baeldung/geotools/GeoToolsUnitTest.java
2017-09-15 22:14:44 +03:00

26 lines
629 B
Java

package com.baeldung.geotools;
import static org.junit.Assert.assertNotNull;
import org.geotools.feature.DefaultFeatureCollection;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.junit.Test;
import org.opengis.feature.simple.SimpleFeatureType;
public class GeoToolsUnitTest {
@Test
public void givenFeatureType_whenAddLocations_returnFeatureCollection() {
DefaultFeatureCollection collection = new DefaultFeatureCollection();
SimpleFeatureType CITY = ShapeFile.createFeatureType();
ShapeFile.addLocations(CITY, collection);
assertNotNull(collection);
}
}