Package org.geotools.data.ows

Examples of org.geotools.data.ows.MockHttpClient


     
      CoordinateReferenceSystem epsg26591 = CRS.decode("EPSG:26591");
      CoordinateReferenceSystem epsg4326 = CRS.decode("EPSG:4326");
     
        // prepare the responses
        MockHttpClient client = new MockHttpClient() {

            public HTTPResponse get(URL url) throws IOException {
                if (url.getQuery().contains("GetCapabilities")) {
                    URL caps = TestData.getResource(this, "geot553capabilities.xml");
                    return new MockHttpResponse(caps, "text/xml");
View Full Code Here


    }

    private WMSCoverageReader getReader4326wms13() throws IOException, ServiceException,
            MalformedURLException {
        // prepare the responses
        MockHttpClient client = new MockHttpClient() {

            public HTTPResponse get(URL url) throws IOException {
                if (url.getQuery().contains("GetCapabilities")) {
                    URL caps130 = WMSCoverageReaderTest.class.getResource("caps130.xml");
                    return new MockHttpResponse(caps130, "text/xml");
View Full Code Here

   
    private WMSCoverageReader getReader4326wms11() throws IOException, ServiceException,
            MalformedURLException {
        // prepare the responses
        MockHttpClient client = new MockHttpClient() {

            public HTTPResponse get(URL url) throws IOException {
                if (url.getQuery().contains("GetCapabilities")) {
                    URL caps130 = WMSCoverageReaderTest.class.getResource("caps110.xml");
                    return new MockHttpResponse(caps130, "text/xml");
View Full Code Here

    }

    @Test
    public void testCrs84wms13() throws Exception {
        // prepare the responses
        MockHttpClient client = new MockHttpClient() {

            public HTTPResponse get(URL url) throws IOException {
                if (url.getQuery().contains("GetCapabilities")) {
                    URL caps130 = WMSCoverageReaderTest.class.getResource("caps130_crs84.xml");
                    return new MockHttpResponse(caps130, "text/xml");
View Full Code Here

TOP

Related Classes of org.geotools.data.ows.MockHttpClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.