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/BRANCHES/DEV/5.2.N/root@133221 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-11-28 16:54:22 +00:00
parent adf2074359
commit 3930d7051a

View File

@@ -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);