mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
69767: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud) 69723: MNT-11123 : Test failure in TestEnterpriseAtomPubTCK Added code which check status of node (it has private working copy). Merged DEV to 4.2-BUG-FIX 67109 : MNT-11123 : Test failure in TestEnterpriseAtomPubTCK Fixed RenditionServiceIntegrationTest.testRenderPdfDocumentLongRunningCheckout test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@70450 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -179,6 +179,7 @@ public class CMISNodeInfoImpl implements CMISNodeInfo
|
|||||||
objectId = connector.constructObjectId(nodeRef, CMISConnector.UNVERSIONED_VERSION_LABEL);
|
objectId = connector.constructObjectId(nodeRef, CMISConnector.UNVERSIONED_VERSION_LABEL);
|
||||||
versionLabel = CMISConnector.UNVERSIONED_VERSION_LABEL;
|
versionLabel = CMISConnector.UNVERSIONED_VERSION_LABEL;
|
||||||
currentObjectId = objectId;
|
currentObjectId = objectId;
|
||||||
|
hasPWC = connector.getCheckOutCheckInService().isCheckedOut(nodeRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void analyseObjectId()
|
protected void analyseObjectId()
|
||||||
|
@@ -669,21 +669,30 @@ public class RenditionServiceIntegrationTest extends BaseAlfrescoSpringTest
|
|||||||
*/
|
*/
|
||||||
public void testRenderPdfDocumentLongRunningCheckout() throws Exception
|
public void testRenderPdfDocumentLongRunningCheckout() throws Exception
|
||||||
{
|
{
|
||||||
class CheckoutRunnable extends AbstractNodeModifyingRunnable
|
try
|
||||||
{
|
{
|
||||||
public CheckoutRunnable(NodeRef nodeRef)
|
class CheckoutRunnable extends AbstractNodeModifyingRunnable
|
||||||
{
|
{
|
||||||
super(nodeRef);
|
public CheckoutRunnable(NodeRef nodeRef)
|
||||||
}
|
{
|
||||||
protected void modifyNode(NodeRef nodeRef)
|
super(nodeRef);
|
||||||
{
|
}
|
||||||
AuthenticationUtil.setRunAsUserSystem();
|
protected void modifyNode(NodeRef nodeRef)
|
||||||
CheckOutCheckInService checkOutCheckInService =
|
{
|
||||||
|
AuthenticationUtil.setRunAsUserSystem();
|
||||||
|
CheckOutCheckInService checkOutCheckInService =
|
||||||
(CheckOutCheckInService) applicationContext.getBean("checkOutCheckInService");
|
(CheckOutCheckInService) applicationContext.getBean("checkOutCheckInService");
|
||||||
checkOutCheckInService.checkout(nodeWithDocContent);
|
checkOutCheckInService.checkout(nodeWithDocContent);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
renderPdfDocumentLongRunningTest(new CheckoutRunnable(nodeWithDocContent));
|
renderPdfDocumentLongRunningTest(new CheckoutRunnable(nodeWithDocContent));
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
AuthenticationUtil.setRunAsUserSystem();
|
||||||
|
CheckOutCheckInService checkOutCheckInService = (CheckOutCheckInService) applicationContext.getBean("CheckOutCheckInService");
|
||||||
|
checkOutCheckInService.cancelCheckout(checkOutCheckInService.getWorkingCopy(nodeWithDocContent));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user