mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.0 (5.2.0) to HEAD (5.2)
133221 jkaabimofrad: Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1) 133163 jkaabimofrad: APPSREPO-54: Fixed build failure. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@133406 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -33,6 +33,7 @@ import static org.junit.Assert.assertNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import org.alfresco.repo.content.MimetypeMap;
|
||||
import org.alfresco.repo.quickshare.QuickShareLinkExpiryActionImpl;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||
import org.alfresco.repo.tenant.TenantUtil;
|
||||
import org.alfresco.rest.api.People;
|
||||
import org.alfresco.rest.api.QuickShareLinks;
|
||||
@@ -883,6 +884,9 @@ public class SharedLinkApiTest extends AbstractBaseApiTest
|
||||
@Test
|
||||
public void testSharedLinkWithExpiryDate() throws Exception
|
||||
{
|
||||
// Clear any hanging security context from other tests.
|
||||
// We add it here as getSchedules method will throw an exception.
|
||||
AuthenticationUtil.clearCurrentSecurityContext();
|
||||
final int numOfSchedules = getSchedules();
|
||||
setRequestContext(user1);
|
||||
|
||||
|
Reference in New Issue
Block a user