use of org.whole.lang.models.model.ComponentModifier in project whole by wholeplatform.
the class ByChildAPITest method testAbstractSetCompositeEntity.
@Test
public void testAbstractSetCompositeEntity() {
ModelsEntityFactory mf = ModelsEntityFactory.instance(RegistryConfigurations.STRICT);
ComponentModifier o = mf.createComponentModifier(ComponentModifierEnum.ordered);
ComponentModifier r = mf.createComponentModifier(ComponentModifierEnum.reference);
ComponentModifier s = mf.createComponentModifier(ComponentModifierEnum.derived);
ComponentModifier[] modifiersArray = new ComponentModifier[] { o, r, s };
ComponentModifiers modifiers = mf.createComponentModifiers(modifiersArray);
unorderedCompositeOperationsEntityTest(modifiersArray, modifiers);
commonOperationsEntityTest(modifiersArray, modifiersArray, modifiers);
uniqueOperationsEntityTest(modifiersArray, modifiers);
propertyChangeEntityTest(modifiersArray, modifiers, mf.createComponentModifier(ComponentModifierEnum.unique));
}
use of org.whole.lang.models.model.ComponentModifier in project whole by wholeplatform.
the class ByChildAPITest method testAbstractListEntity.
@Test
public void testAbstractListEntity() {
ModelsEntityFactory mf = ModelsEntityFactory.instance;
ComponentModifier o = mf.createComponentModifier(ComponentModifierEnum.ordered);
ComponentModifier r1 = mf.createComponentModifier(ComponentModifierEnum.reference);
ComponentModifier r2 = mf.createComponentModifier(ComponentModifierEnum.reference);
ComponentModifier s = mf.createComponentModifier(ComponentModifierEnum.derived);
ComponentModifier[] modifiersArray = new ComponentModifier[] { o, r1, r2, s };
int[] businessEquivalence = new int[] { 0, 1, 1, 3 };
ComponentModifiers modifiers = mf.createComponentModifiers(modifiersArray);
orderedCompositeOperationsEntityTest(modifiersArray, businessEquivalence, modifiers);
commonOperationsEntityTest(modifiersArray, modifiersArray, modifiers);
propertyChangeEntityTest(modifiersArray, modifiers, mf.createComponentModifier(ComponentModifierEnum.reference));
}
Aggregations