/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2008, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.data.wfs.internal.parsers;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import javax.xml.namespace.QName;
import org.geotools.data.wfs.WFSDataStoreFactory;
import org.geotools.data.wfs.internal.GetFeatureParser;
import org.opengis.feature.simple.SimpleFeatureType;
/**
*
*
* @source $URL$
*/
public class XmlSimpleFeatureParserTest extends AbstractGetFeatureParserTest {
@Override
protected GetFeatureParser getParser(final QName featureName, final URL schemaLocation,
final SimpleFeatureType featureType, final URL getFeaturesRequest) throws IOException {
InputStream inputStream = new BufferedInputStream(getFeaturesRequest.openStream());
GetFeatureParser parser = new XmlSimpleFeatureParser(inputStream, featureType, featureName, WFSDataStoreFactory.AXIS_ORDER_COMPLIANT);
return parser;
}
}