Search in sources :

Example 1 with Attributes

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")));
}
Also used : Attribute(org.whole.lang.xml.model.Attribute) Attributes(org.whole.lang.xml.model.Attributes) XmlEntityFactory(org.whole.lang.xml.factories.XmlEntityFactory) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 XmlEntityFactory (org.whole.lang.xml.factories.XmlEntityFactory)1 Attribute (org.whole.lang.xml.model.Attribute)1 Attributes (org.whole.lang.xml.model.Attributes)1