Bael 817 refactor (#2575)

* Code refactor according to comments

* Moved to new module

* Changes in pom file
This commit is contained in:
dimitarsazdovski
2017-09-13 12:28:01 +02:00
committed by Grzegorz Piwowarek
parent ba9d8324ee
commit 8ac23221fe
5 changed files with 126 additions and 73 deletions
@@ -1,27 +0,0 @@
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);
}
}