mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
19272: Fix PatchTest git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19273 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,6 +25,7 @@ import junit.framework.TestCase;
|
|||||||
|
|
||||||
import org.alfresco.error.AlfrescoRuntimeException;
|
import org.alfresco.error.AlfrescoRuntimeException;
|
||||||
import org.alfresco.repo.security.authentication.AuthenticationContext;
|
import org.alfresco.repo.security.authentication.AuthenticationContext;
|
||||||
|
import org.alfresco.repo.tenant.TenantAdminService;
|
||||||
import org.alfresco.service.cmr.admin.PatchException;
|
import org.alfresco.service.cmr.admin.PatchException;
|
||||||
import org.alfresco.service.cmr.repository.NodeService;
|
import org.alfresco.service.cmr.repository.NodeService;
|
||||||
import org.alfresco.service.cmr.search.SearchService;
|
import org.alfresco.service.cmr.search.SearchService;
|
||||||
@@ -49,6 +50,7 @@ public class PatchTest extends TestCase
|
|||||||
private NodeService nodeService;
|
private NodeService nodeService;
|
||||||
private SearchService searchService;
|
private SearchService searchService;
|
||||||
private AuthenticationContext authenticationContext;
|
private AuthenticationContext authenticationContext;
|
||||||
|
private TenantAdminService tenantAdminService;
|
||||||
private PatchService patchService;
|
private PatchService patchService;
|
||||||
|
|
||||||
public PatchTest(String name)
|
public PatchTest(String name)
|
||||||
@@ -63,6 +65,7 @@ public class PatchTest extends TestCase
|
|||||||
nodeService = (NodeService) ctx.getBean("nodeService");
|
nodeService = (NodeService) ctx.getBean("nodeService");
|
||||||
searchService = (SearchService) ctx.getBean("searchService");
|
searchService = (SearchService) ctx.getBean("searchService");
|
||||||
authenticationContext = (AuthenticationContext) ctx.getBean("authenticationContext");
|
authenticationContext = (AuthenticationContext) ctx.getBean("authenticationContext");
|
||||||
|
tenantAdminService = (TenantAdminService) ctx.getBean("tenantAdminService");
|
||||||
|
|
||||||
patchService = (PatchService) ctx.getBean("PatchService");
|
patchService = (PatchService) ctx.getBean("PatchService");
|
||||||
|
|
||||||
@@ -84,6 +87,8 @@ public class PatchTest extends TestCase
|
|||||||
patch.setNodeService(nodeService);
|
patch.setNodeService(nodeService);
|
||||||
patch.setSearchService(searchService);
|
patch.setSearchService(searchService);
|
||||||
patch.setAuthenticationContext(authenticationContext);
|
patch.setAuthenticationContext(authenticationContext);
|
||||||
|
patch.setTenantAdminService(tenantAdminService);
|
||||||
|
patch.setApplicationEventPublisher(ctx);
|
||||||
// done
|
// done
|
||||||
return patch;
|
return patch;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user