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