mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix test - need to authenticate as admin
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8029 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -94,6 +94,9 @@ public class MessageServiceImplTest extends BaseSpringTest implements MessageDep
|
|||||||
authenticationService.createAuthentication(USER_NAME, PWD.toCharArray());
|
authenticationService.createAuthentication(USER_NAME, PWD.toCharArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Authenticate - as admin
|
||||||
|
authenticationService.authenticate(USER_NAME, PWD.toCharArray());
|
||||||
|
|
||||||
// Store test messages in repo
|
// Store test messages in repo
|
||||||
String pattern = "classpath*:" + BASE_RESOURCE_CLASSPATH + BASE_BUNDLE_NAME + "*";
|
String pattern = "classpath*:" + BASE_RESOURCE_CLASSPATH + BASE_BUNDLE_NAME + "*";
|
||||||
|
|
||||||
@@ -109,9 +112,6 @@ public class MessageServiceImplTest extends BaseSpringTest implements MessageDep
|
|||||||
addMessageResource(rootNodeRef, filename, resources[i].getInputStream());
|
addMessageResource(rootNodeRef, filename, resources[i].getInputStream());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Authenticate
|
|
||||||
authenticationService.authenticate(USER_NAME, PWD.toCharArray());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addMessageResource(NodeRef rootNodeRef, String name, InputStream resourceStream) throws Exception
|
private void addMessageResource(NodeRef rootNodeRef, String name, InputStream resourceStream) throws Exception
|
||||||
|
Reference in New Issue
Block a user