use of org.apache.ws.commons.schema.XmlSchemaSimpleType in project ddf by codice.
the class FeatureMetacardTypeTest method testfeatureMetacardTypeFindLongProperties.
@Test
public void testfeatureMetacardTypeFindLongProperties() {
XmlSchema schema = new XmlSchema();
XmlSchemaElement longElement = new XmlSchemaElement(schema, true);
longElement.setSchemaType(new XmlSchemaSimpleType(schema, false));
longElement.setSchemaTypeName(Constants.XSD_LONG);
longElement.setName(ELEMENT_NAME_1);
schema.getElements().put(new QName(ELEMENT_NAME_1), longElement);
FeatureMetacardType featureMetacardType = new FeatureMetacardType(schema, FEATURE_TYPE, NON_QUERYABLE_PROPS, Wfs20Constants.GML_3_2_NAMESPACE);
assertAttributeDescriptor(featureMetacardType, ELEMENT_NAME_1, BasicTypes.LONG_TYPE);
}
Aggregations