Fixed unit test to account for auto-addition of aspects

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14333 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley 2009-05-15 13:13:23 +00:00
parent ff815e8e2f
commit 80c131be6e

View File

@ -236,6 +236,8 @@ public class IntegrityTest extends TestCase
{
NodeRef nodeRef = createNode("abc", TEST_TYPE_WITH_PROPERTIES, allProperties);
// Remove the automatically-added aspect
nodeService.removeAspect(nodeRef, TEST_ASPECT_WITH_PROPERTIES);
// remove all the properties
PropertyMap properties = new PropertyMap();
nodeService.setProperties(nodeRef, properties);