- Fixes to unit tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2397 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2006-02-15 22:00:13 +00:00
parent ab62a48f1f
commit beb3bfca4d
3 changed files with 12 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ import org.alfresco.repo.action.ActionImpl;
import org.alfresco.repo.content.MimetypeMap;
import org.alfresco.repo.content.metadata.MetadataExtracterRegistry;
import org.alfresco.repo.content.transform.AbstractContentTransformerTest;
import org.alfresco.repo.security.authentication.AuthenticationComponent;
import org.alfresco.service.cmr.repository.ContentService;
import org.alfresco.service.cmr.repository.ContentWriter;
import org.alfresco.service.cmr.repository.NodeRef;
@@ -63,6 +64,9 @@ public class ContentMetadataExtracterTest extends BaseSpringTest
this.contentService = (ContentService) this.applicationContext.getBean("contentService");
this.metadataExtracterRegistry = (MetadataExtracterRegistry) this.applicationContext
.getBean("metadataExtracterRegistry");
AuthenticationComponent authenticationComponent = (AuthenticationComponent)applicationContext.getBean("authenticationComponent");
authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName());
// Create the store and get the root node
this.testStoreRef = this.nodeService.createStore(