Merged V2.2 to HEAD

11016: Query performance improvements
   11018: Build fixes after .... Query performance improvements
   11043: Updated Lucene config and test fixes
   11047: Fixed test's expected results
   11049: Build fix
   11051: Tighten up on Auditable tests and checks for null


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11221 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2008-10-06 23:06:54 +00:00
parent 17e9f1d7ac
commit ad23a594f5
11 changed files with 777 additions and 1076 deletions

View File

@@ -104,13 +104,26 @@ public class AuditableAspectTest extends BaseSpringTest
QName.createQName("{test}testperson"),
ContentModel.TYPE_PERSON,
personProps);
NodeRef nodeRef = childAssocRef.getChildRef();
// Assert the person is not auditable
Set<QName> aspects = nodeService.getAspects(childAssocRef.getChildRef());
assertFalse(aspects.contains(ContentModel.ASPECT_AUDITABLE));
Set<QName> aspects = nodeService.getAspects(nodeRef);
assertFalse("cm:auditable must not be present.", aspects.contains(ContentModel.ASPECT_AUDITABLE));
Map<QName, Serializable> properties = nodeService.getProperties(nodeRef);
assertFalse("cm:creator must not be present", properties.containsKey(ContentModel.PROP_CREATOR));
assertFalse("cm:created must not be present", properties.containsKey(ContentModel.PROP_CREATED));
assertNull(
"Didn't expect to get single auditable property",
nodeService.getProperty(nodeRef, ContentModel.PROP_CREATOR));
System.out.println(NodeStoreInspector.dumpNodeStore(nodeService, storeRef));
}
public void test() throws Throwable
{
}
public void testAddAudit()