From 2c9020a9043afdab0e0a26b8cc27a10b9747b18c Mon Sep 17 00:00:00 2001 From: Jean-Pierre Huynh Date: Mon, 16 Nov 2015 14:05:17 +0000 Subject: [PATCH] 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 --- .../RenditionServiceIntegrationTest.java | 51 ------------------- 1 file changed, 51 deletions(-) diff --git a/source/test-java/org/alfresco/repo/rendition/RenditionServiceIntegrationTest.java b/source/test-java/org/alfresco/repo/rendition/RenditionServiceIntegrationTest.java index e90639cede..17aaa989e6 100644 --- a/source/test-java/org/alfresco/repo/rendition/RenditionServiceIntegrationTest.java +++ b/source/test-java/org/alfresco/repo/rendition/RenditionServiceIntegrationTest.java @@ -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() - { - 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 Runnable which sleeps for a short time * to allow transformations to start then attempts some modification of the node