AnsweredAssumed Answered

Category Tests - multiplicity violation

Question asked by dbevacqua on Jul 27, 2006
Latest reply on Sep 8, 2006 by andy
Hi

Running LuceneCategoryTest I get the following:



17:25:14,375 WARN  [node.integrity.IntegrityChecker] Found 1 integrity violations:
The association child multiplicity has been violated:
   Association: Association[ class=ClassDef [ name={http://www.alfresco.org/model/content/1.0}category_root], name={http://www.alfresco.org/model/content/1.0}categories, target class={http://www.alfresco.org/model/content/1.0}category, source role=null, target role=null]
   Required child Multiplicity: 1..1
   Actual child Multiplicity: 3




Only a warning, and I know that at least part of the cause is:


nodeService.addChild(catRoot, catRBase, ContentModel.ASSOC_CATEGORIES, QName.createQName(TEST_NAMESPACE, "InvestmentRegion"));
nodeService.addChild(catRoot, catRBase, ContentModel.ASSOC_CATEGORIES, QName.createQName(TEST_NAMESPACE, "MarketingRegion"));
       

(lines 175 & 176 in the HEAD version of the test)

Is this something I should worry about? In a similar test, the transaction comitted fine - everything was written correctly to the repo - but the warning worries me slightly.

Outcomes