Fixed bug in test code that was causing test failure

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19104 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Neil McErlean
2010-03-07 14:26:01 +00:00
parent bce28a5599
commit ef6595c3de

View File

@@ -473,13 +473,13 @@ public class RenditionServiceIntegrationTest extends BaseAlfrescoSpringTest
// The rendition node should have no other
// parent-associations - in this case
assertEquals("Wrong value for rendition node parent count.", 1, nodeService
.getParentAssocs(renditionNode).size());
.getParentAssocs(renditionAssoc.getChildRef()).size());
// Now the source content node should have the
// renditioned aspect
assertTrue("Source node is missing renditioned aspect.", nodeService.hasAspect(
nodeWithDocContent, RenditionModel.ASPECT_RENDITIONED));
return renditionNode;
return renditionAssoc.getChildRef();
}
});