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

@@ -72,7 +72,7 @@ public abstract class AbstractPatch implements Patch
/** support service */
protected SearchService searchService;
/** support service */
protected AuthenticationComponent authComponent;
protected AuthenticationComponent authenticationComponent;
public AbstractPatch()
{
@@ -137,9 +137,12 @@ public abstract class AbstractPatch implements Patch
this.searchService = searchService;
}
public void setAuthenticationComponent(AuthenticationComponent authComponent)
/**
* Set a generally-used service
*/
public void setAuthenticationComponent(AuthenticationComponent authenticationComponent)
{
this.authComponent = authComponent;
this.authenticationComponent = authenticationComponent;
}
/**
@@ -295,7 +298,7 @@ public abstract class AbstractPatch implements Patch
checkPropertyNotNull(namespaceService, "namespaceService");
checkPropertyNotNull(nodeService, "nodeService");
checkPropertyNotNull(searchService, "searchService");
checkPropertyNotNull(authComponent, "authComponent");
checkPropertyNotNull(authenticationComponent, "authenticationComponent");
if (fixesFromSchema == -1 || fixesToSchema == -1 || targetSchema == -1)
{
throw new AlfrescoRuntimeException(