Package mc.core.domain.base.aspect
Class AspectAttributeReadTest
java.lang.Object
mc.core.system.base.BaseBean
mc.core.system.base.BaseBeanTx
mc.core.system.test.TestBase
mc.core.domain.base.aspect.AspectAttributeReadTest
public class AspectAttributeReadTest
extends mc.core.system.test.TestBase
data needed for test (will be inserted if not exists, but not deleted, except the nodes):
- 2 attribute types of type OBJECTS_VALUE
- 2 attribute types of type TYPES
- of each pair the first one has 2 collections, the second one 1 collection
- in each collection 2 attributes of type SV_ML
- of the object attributes all are inheritable except the last one
- node hierarchy with 3 node types, of each type one node
- root node type has configured the type attributes, all 3 node types have the object attribute types allowed
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidinsert child and grandchild-collection for root collection, assign attributes to root asset collection -> test that this collection and its children have the attribute if includeTransient = true set values for some attributes of root collection -> test that they show in AttributeValues of root collectionvoidloads a mixture of inheritable OAs and type attributes -> only the object attributes should have the inherited value
Test no longer working because sort order has changed after MC-5574: inherited get sorted at beginning, overwritten at end of list if no special sorting is present.voidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class mc.core.system.test.TestBase
afterTest, beforeTest
-
Constructor Details
-
AspectAttributeReadTest
public AspectAttributeReadTest()
-
-
Method Details
-
loadInheritedAttributes
- Throws:
Exception
-
loadInheritedTextbausteine
- Throws:
Exception
-
loadTypeAttributes
- Throws:
Exception
-
loadTypeAttributeByCollection
- Throws:
Exception
-
loadInheritedAttributesFromAssetCollection
- insert child and grandchild-collection for root collection, assign attributes to root asset collection -> test that this collection and its children have the attribute if includeTransient = true
- set values for some attributes of root collection -> test that they show in AttributeValues of root collection
- Throws:
Exception
-
loadInheritedOAsFromAssetCollection
- Throws:
Exception
-
loadSingleDataValue
- Throws:
Exception
-
loadInheritedAttributesMixed
loads a mixture of inheritable OAs and type attributes -> only the object attributes should have the inherited value
Test no longer working because sort order has changed after MC-5574: inherited get sorted at beginning, overwritten at end of list if no special sorting is present.- Throws:
Exception
-
loadWithInheritance
- Throws:
Exception
-
loadWithInheritanceDisabled
- Throws:
Exception
-
testRemoveManualSorting
- Throws:
Exception
-