assertNotNull(caps.getFeatureTypeList());
}
public void testEncode() throws Exception {
WFSCapabilitiesType caps = factory.createWFSCapabilitiesType();
caps.setVersion("1.1.0");
{
FeatureTypeListType ftl = factory.createFeatureTypeListType();
caps.setFeatureTypeList(ftl);
}
{
GMLObjectTypeListType servesGmlObj = factory.createGMLObjectTypeListType();
GMLObjectTypeType gmlObj = factory.createGMLObjectTypeType();
gmlObj.setAbstract("abstract");
gmlObj.setName(GML._Feature);
gmlObj.setTitle("title");
servesGmlObj.getGMLObjectType().add(gmlObj);
caps.setServesGMLObjectTypeList(servesGmlObj);
}
{
GMLObjectTypeListType supportsGmlObj = factory.createGMLObjectTypeListType();
GMLObjectTypeType type = factory.createGMLObjectTypeType();
type.setName(GML._Feature);
supportsGmlObj.getGMLObjectType().add(type);
caps.setSupportsGMLObjectTypeList(supportsGmlObj);
}
FilterCapabilities filterCaps = createTestFilterCapabilities();
caps.setFilterCapabilities(filterCaps);
final Document dom = encode(caps, WFS.WFS_Capabilities);
final Element root = dom.getDocumentElement();
assertName(WFS.WFS_Capabilities, root);