Merged JPHUYNH/BDE-443 (5.1.0) to HEAD (5.1)

117189 adavis: BDE-443 Check whether we can buy licenses for the GPL components we ship
      - Removed unit test RenditionServiceIntegrationTest.testRenderPdfDocumentToFlash
        The only one that failed in the build.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@117633 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jean-Pierre Huynh
2015-11-16 14:05:17 +00:00
parent 43f68c654c
commit 2c9020a904

View File

@@ -546,57 +546,6 @@ public class RenditionServiceIntegrationTest extends BaseAlfrescoSpringTest
});
}
/**
* This test method uses the RenditionService to render a test document (of
* type PDF) into a different format (of type
* application/x-shockwave-flash).
*/
public void testRenderPdfDocumentToFlash() throws Exception
{
this.setComplete();
this.endTransaction();
this.renditionNode = transactionHelper
.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback<NodeRef>()
{
public NodeRef execute() throws Throwable
{
// Initially the node that provides the content
// should not have the rn:renditioned aspect on it.
assertFalse("Source node has unexpected renditioned aspect.", nodeService.hasAspect(
nodeWithDocContent, RenditionModel.ASPECT_RENDITIONED));
validateRenderingActionDefinition(ReformatRenderingEngine.NAME);
RenditionDefinition action = makeReformatAction(null, MimetypeMap.MIMETYPE_FLASH);
action.setParameterValue(ReformatRenderingEngine.PARAM_FLASH_VERSION, "9");
// Render the content and put the result underneath
// the content node
ChildAssociationRef renditionAssoc = renditionService.render(nodeWithDocContent, action);
assertEquals("The parent node was not correct", nodeWithDocContent, renditionAssoc
.getParentRef());
validateRenditionAssociation(renditionAssoc, REFORMAT_RENDER_DEFN_NAME);
// The rendition node should have no other
// parent-associations - in this case
assertEquals("Wrong value for rendition node parent count.", 1, nodeService
.getParentAssocs(renditionAssoc.getChildRef()).size());
// Now the source content node should have the
// renditioned aspect
assertTrue("Source node is missing renditioned aspect.", nodeService.hasAspect(
nodeWithDocContent, RenditionModel.ASPECT_RENDITIONED));
return renditionAssoc.getChildRef();
}
});
// Now in a separate transaction, we'll check that the reformatted
// content is actually there.
assertNotNull("The rendition node was null.", renditionNode);
}
/**
* Abstract base implementation of <code>Runnable</code> which sleeps for a short time
* to allow transformations to start then attempts some modification of the node