Package org.geoserver.wfs.xslt.config

Examples of org.geoserver.wfs.xslt.config.TransformInfo


        MockHttpServletResponse response = postAsServletResponse("rest/services/wfs/transforms", xml);
        assertEquals( 201, response.getStatusCode() );
        assertNotNull( response.getHeader( "Location") );
        assertTrue( response.getHeader("Location").endsWith( "/rest/services/wfs/transforms/buildings" ) );
       
        TransformInfo info = repository.getTransformInfo("buildings");
        assertNotNull(info);
    }
View Full Code Here


        response = postAsServletResponse("rest/services/wfs/transforms?name=general2&sourceFormat=gml&outputFormat=HTML&outputMimeType=text/html", xslt, "application/xslt+xml");
        assertEquals(201, response.getStatusCode());
        assertNotNull( response.getHeader( "Location") );
        assertTrue( response.getHeader("Location").endsWith( "/rest/services/wfs/transforms/general2" ) );

        TransformInfo info = repository.getTransformInfo("general2");
        assertNotNull(info);
        assertEquals("gml", info.getSourceFormat());
        assertEquals("HTML", info.getOutputFormat());
        assertEquals("text/html", info.getOutputMimeType());
    }
View Full Code Here

            "</transform>";
       
        MockHttpServletResponse response = putAsServletResponse("rest/services/wfs/transforms/general", xml, "text/xml");
        assertEquals(200, response.getStatusCode());
       
        TransformInfo info = repository.getTransformInfo("general");
        assertEquals("text/html", info.getOutputFormat());
    }
View Full Code Here

    public void testPutXSLT() throws Exception {
        String xslt = FileUtils.readFileToString(new File("src/test/resources/org/geoserver/wfs/xslt/general2.xslt"));
        MockHttpServletResponse response = putAsServletResponse("rest/services/wfs/transforms/general", xslt, "application/xslt+xml");
        assertEquals(200, response.getStatusCode());
       
        TransformInfo info = repository.getTransformInfo("general");
        InputStream is = null;
        String actual = null;
        try {
            is = repository.getTransformSheet(info);
            actual = IOUtils.toString(is);
View Full Code Here

    @Test
    public void testDelete() throws Exception {
        MockHttpServletResponse response = deleteAsServletResponse("rest/services/wfs/transforms/general");
        assertEquals(200, response.getStatusCode());
       
        TransformInfo info = repository.getTransformInfo("general");
        assertNull(info);
    }
View Full Code Here

TOP

Related Classes of org.geoserver.wfs.xslt.config.TransformInfo

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.