public DescribeFeatureTypeTypeBindingTest() {
super(WFS.DescribeFeatureTypeType, DescribeFeatureTypeType.class, Binding.BEFORE);
}
public void testEncode() throws Exception {
final DescribeFeatureTypeType dft = factory.createDescribeFeatureTypeType();
// set BaseRequestType propertyes (DescribeFeatureType extends
// BaseRequestType)
dft.setService("WFS");
dft.setVersion("1.1.0");
dft.setHandle("bar");
// set DescribeFeatureType properties
dft.setOutputFormat("foo");
final QName name1 = new QName("http://www.geotools.org/test", "Type1");
final QName name2 = new QName("http://www.geotools.org/test", "Type2");
dft.getTypeName().add(name1);
dft.getTypeName().add(name2);
final Document dom = encode(dft, WFS.DescribeFeatureType);
final Element root = dom.getDocumentElement();
assertEquals("WFS", root.getAttribute("service"));