use of net.opengis.wfs.v_2_0_0.GetFeatureType in project ddf by codice.
the class WfsSourceTest method testSrsNameProvided.
@Test
public void testSrsNameProvided() throws Exception {
int pageSize = 10;
WfsSource source = getWfsSource(ONE_TEXT_PROPERTY_SCHEMA, MockWfsServer.getFilterCapabilities(), 10, false);
source.setSrsName(GeospatialUtil.EPSG_4326);
Filter filter = builder.attribute(Metacard.CONTENT_TYPE).is().equalTo().text(SAMPLE_FEATURE_NAME + "0");
QueryImpl query = new QueryImpl(filter);
query.setPageSize(pageSize);
// Execute
GetFeatureType featureType = source.buildGetFeatureRequest(query);
QueryType queryType = (QueryType) featureType.getAbstractQueryExpression().get(0).getValue();
assertThat(queryType.getSrsName(), is(GeospatialUtil.EPSG_4326));
}
Aggregations