mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
REPO-1543: Refactor tests for list site filtering
- Clear the authentication context on tear down git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132620 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -199,7 +199,7 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
users.clear();
|
users.clear();
|
||||||
|
AuthenticationUtil.clearCurrentSecurityContext();
|
||||||
setRequestContext(null);
|
setRequestContext(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -645,7 +645,6 @@ public class NodeAssociationsApiTest extends AbstractSingleNetworkSiteTest
|
|||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
// some cleanup
|
// some cleanup
|
||||||
AuthenticationUtil.clearCurrentSecurityContext();
|
|
||||||
setRequestContext(user1);
|
setRequestContext(user1);
|
||||||
deleteNode(u1f1Id, true, 204);
|
deleteNode(u1f1Id, true, 204);
|
||||||
deleteNode(sf1Id, true, 204);
|
deleteNode(sf1Id, true, 204);
|
||||||
|
Reference in New Issue
Block a user