use of org.geotools.feature.visitor.MinVisitor in project incubator-rya by apache.
the class GeoWaveFeatureReaderTest method testMin.
@Test
public void testMin() throws IllegalArgumentException, NoSuchElementException, IOException {
final FeatureReader<SimpleFeatureType, SimpleFeature> reader = dataStore.getFeatureReader(query, Transaction.AUTO_COMMIT);
final MinVisitor visitor = new MinVisitor("start", type);
unwrapDelegatingFeatureReader(reader).getFeatureCollection().accepts(visitor, null);
assertTrue(visitor.getMin().equals(stime));
}
Aggregations