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 Details

    • AspectAttributeReadTest

      public AspectAttributeReadTest()
  • Method Details

    • loadInheritedAttributes

      public void loadInheritedAttributes() throws Exception
      Throws:
      Exception
    • loadInheritedTextbausteine

      public void loadInheritedTextbausteine() throws Exception
      Throws:
      Exception
    • loadTypeAttributes

      public void loadTypeAttributes() throws Exception
      Throws:
      Exception
    • loadTypeAttributeByCollection

      public void loadTypeAttributeByCollection() throws Exception
      Throws:
      Exception
    • loadInheritedAttributesFromAssetCollection

      public void loadInheritedAttributesFromAssetCollection() throws Exception
      • 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

      public void loadInheritedOAsFromAssetCollection() throws Exception
      Throws:
      Exception
    • loadSingleDataValue

      public void loadSingleDataValue() throws Exception
      Throws:
      Exception
    • loadInheritedAttributesMixed

      public void loadInheritedAttributesMixed() throws Exception
      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

      public void loadWithInheritance() throws Exception
      Throws:
      Exception
    • loadWithInheritanceDisabled

      public void loadWithInheritanceDisabled() throws Exception
      Throws:
      Exception
    • testRemoveManualSorting

      public void testRemoveManualSorting() throws Exception
      Throws:
      Exception