package org.geoserver.wfs; import org.w3c.dom.Document; public class WFSDisabledTest extends WFSTestSupport { public void testDisabledServiceResponse() throws Exception { WFSInfo wfs = getGeoServer().getService(WFSInfo.class); wfs.setEnabled(false); getGeoServer().save(wfs); Document doc = getAsDOM("wfs?service=WFS&version=1.0.0&request=getCapabilities"); assertEquals("ows:ExceptionReport", doc.getDocumentElement() .getNodeName()); } public void testEnabledServiceResponse() throws Exception { WFSInfo wfs = getGeoServer().getService(WFSInfo.class); wfs.setEnabled(true); getGeoServer().save(wfs); Document doc = getAsDOM("wfs?service=WFS&version=1.1.0&request=getCapabilities"); assertEquals("wfs:WFS_Capabilities", doc.getDocumentElement() .getNodeName()); } }