use of org.whole.lang.xml.model.Attributes in project whole by wholeplatform.
the class ByChildAPITest method testAbstractUListEntity.
@Test
public void testAbstractUListEntity() {
XmlEntityFactory xmlf = XmlEntityFactory.instance(RegistryConfigurations.STRICT);
Attribute a1 = xmlf.createAttribute(xmlf.createName("attr1"), xmlf.createValue("value1"));
Attribute a2 = xmlf.createAttribute(xmlf.createName("attr2"), xmlf.createValue("value2"));
Attribute a3 = xmlf.createAttribute(xmlf.createName("attr3"), xmlf.createValue("value3"));
Attribute[] attributesArray = new Attribute[] { a1, a2, a3 };
int[] businessEquivalence = new int[] { 0, 1, 2 };
Attributes attributes = xmlf.createAttributes(attributesArray);
orderedCompositeOperationsEntityTest(attributesArray, businessEquivalence, attributes);
commonOperationsEntityTest(attributesArray, attributesArray, attributes);
uniqueOperationsEntityTest(attributesArray, attributes);
propertyChangeEntityTest(attributesArray, attributes, xmlf.createAttribute(xmlf.createName("attr4"), xmlf.createValue("value4")));
}
Aggregations