01: package org.geoserver.wfs.v1_1;
02:
03: import org.geoserver.wfs.WFSTestSupport;
04: import org.w3c.dom.Document;
05:
06: public class GetFeatureWithLockTest extends WFSTestSupport {
07:
08: public void test() throws Exception {
09: String xml = "<wfs:GetFeatureWithLock service=\"WFS\" version=\"1.1.0\" "
10: + " handle=\"GetFeatureWithLock-tc1\""
11: + " expiry=\"5\""
12: + " resultType=\"results\""
13: + " xmlns:wfs=\"http://www.opengis.net/wfs\""
14: + " xmlns:sf=\"http://cite.opengeospatial.org/gmlsf\">"
15: + " <wfs:Query handle=\"qry-1\" typeName=\"sf:PrimitiveGeoFeature\" />"
16: + " </wfs:GetFeatureWithLock>";
17:
18: Document dom = postAsDOM("wfs", xml);
19: //print( dom );
20: assertEquals("wfs:FeatureCollection", dom.getDocumentElement()
21: .getNodeName());
22: assertNotNull(dom.getDocumentElement().getAttribute("lockId"));
23: }
24: }
|