mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user