Fixed failing test

- Abstract base class required injection of more generally-used services
Fixed 'property not set' error message to display the correct property name


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2654 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-04-13 03:00:01 +00:00
parent b91897f77a
commit 89072b8dbd
3 changed files with 37 additions and 9 deletions

View File

@@ -165,13 +165,13 @@ public class EmailTemplatesContentPatch extends AbstractPatch
// import the content
try
{
authComponent.setCurrentUser(authComponent.getSystemUserName());
authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName());
importContent();
}
finally
{
authComponent.clearCurrentSecurityContext();
authenticationComponent.clearCurrentSecurityContext();
}
// output a message to describe the result