01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, Geotools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.data.wfs;
17:
18: import java.io.IOException;
19: import java.net.MalformedURLException;
20: import java.net.URL;
21: import java.util.NoSuchElementException;
22:
23: import junit.framework.TestCase;
24:
25: import org.geotools.feature.IllegalAttributeException;
26: import org.xml.sax.SAXException;
27:
28: /**
29: * summary sentence.
30: * <p>
31: * Paragraph ...
32: * </p><p>
33: * Responsibilities:
34: * <ul>
35: * <li>
36: * <li>
37: * </ul>
38: * </p><p>
39: * Example:<pre><code>
40: * GeoServer x = new GeoServer( ... );
41: * TODO code example
42: * </code></pre>
43: * </p>
44: * @author dzwiers
45: * @since 0.6.0
46: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/plugin/wfs/src/test/java/org/geotools/data/wfs/MapServerOnlineTest.java $
47: */
48: public class MapServerOnlineTest extends TestCase {
49:
50: private URL url = null;
51:
52: public MapServerOnlineTest() throws MalformedURLException {
53: url = new URL(
54: "http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/envdat/config.map&service=WFS&version=1.0.0&request=GetCapabilities");
55: }
56:
57: // POST is buggy ... and returns HTML, doesn't seem to recognize the request
58: public void testFeatureType() throws NoSuchElementException,
59: IOException, SAXException {
60: WFSDataStoreReadTest.doFeatureType(url, true, false, 0);
61: }
62:
63: public void testFeatureReader() throws NoSuchElementException,
64: IOException, IllegalAttributeException, SAXException {
65: WFSDataStoreReadTest.doFeatureReader(url, true, false, 0);
66: }
67:
68: public void testFeatureReaderWithFilter()
69: throws NoSuchElementException, IllegalAttributeException,
70: IOException, SAXException {
71: WFSDataStoreReadTest.doFeatureReaderWithQuery(url, true, false,
72: 0);
73: }
74: }
|