* Stashed changes

* Changed method access restriction

* Added test class

* Changes to pom file

* Changed formatting. Changed file path variable

* Changed pom file. Changed unit test name

* pom file
This commit is contained in:
dimitarsazdovski
2017-08-20 04:04:56 +02:00
committed by KevinGilmore
parent a3cbc25dd8
commit b65bccabd1
3 changed files with 779 additions and 528 deletions
@@ -0,0 +1,27 @@
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 GeoToolsUnitTestTest {
@Test
public void givenFeatureType_whenAddLocations_returnFeatureCollection() {
DefaultFeatureCollection collection = new DefaultFeatureCollection();
SimpleFeatureType CITY = ShapeFile.createFeatureType();
SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(CITY);
ShapeFile.addLocations(featureBuilder, collection);
assertNotNull(collection);
}
}