@Test public void testTreatStringAsGeoJsonEmptyCollection() throws Exception { Configuration configuration = configurationFactory.getConfig(getFile("geojson/config.yaml")); MfClientHttpRequestFactory configRequestFactory = new ConfigFileResolvingHttpRequestFactory(requestFactory, configuration, "test"); FeaturesParser featuresParser = new FeaturesParser(configRequestFactory, false); final String geojson = "{\"type\": \"FeatureCollection\", \"features\": []}"; final SimpleFeatureCollection simpleFeatureCollection = featuresParser.treatStringAsGeoJson(geojson); assertEquals(0, simpleFeatureCollection.size()); }
public final SimpleFeatureCollection treatStringAsGeoJson(final String geoJsonString) throws IOException { return readFeatureCollection(geoJsonString); }
FeaturesParser { public final SimpleFeatureCollection treatStringAsGeoJson(final String geoJsonString) throws IOException { return readFeatureCollection(geoJsonString); } }
FeaturesParser { public final SimpleFeatureCollection treatStringAsGeoJson(final String geoJsonString) throws IOException { return readFeatureCollection(geoJsonString); } FeaturesParser(
            final MfClientHttpRequestFactory httpRequestFactory, final boolean forceLongitudeFirst); }
FeaturesParser { public final SimpleFeatureCollection treatStringAsGeoJson(final String geoJsonString) throws IOException { return readFeatureCollection(geoJsonString); } FeaturesParser(
            final MfClientHttpRequestFactory httpRequestFactory, final boolean forceLongitudeFirst); final SimpleFeatureCollection autoTreat(final Template template, final String features); final SimpleFeatureCollection treatStringAsURL(final Template template, final String geoJsonUrl); final SimpleFeatureCollection treatStringAsGeoJson(final String geoJsonString); }
FeaturesParser { public final SimpleFeatureCollection treatStringAsGeoJson(final String geoJsonString) throws IOException { return readFeatureCollection(geoJsonString); } FeaturesParser(
            final MfClientHttpRequestFactory httpRequestFactory, final boolean forceLongitudeFirst); final SimpleFeatureCollection autoTreat(final Template template, final String features); final SimpleFeatureCollection treatStringAsURL(final Template template, final String geoJsonUrl); final SimpleFeatureCollection treatStringAsGeoJson(final String geoJsonString);  }