public class RenditionServiceIntegrationTest extends BaseAlfrescoSpringTest
actionService, authenticationComponent, authenticationService, contentService, nodeService, rootNodeRef, storeRef, transactionService
sessionFactory
jdbcTemplate
transactionDefinition, transactionManager, transactionStatus
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
Constructor and Description |
---|
RenditionServiceIntegrationTest() |
Modifier and Type | Method and Description |
---|---|
void |
off_test_CleanPersistedRenditionsAndCreateExportedACP()
Deprecated.
|
protected void |
onSetUpInTransaction()
On setup in transaction override
|
protected void |
onTearDownInTransaction() |
protected org.alfresco.service.cmr.repository.NodeRef |
performImageRendition(java.util.Map parameterValues,
org.alfresco.service.cmr.repository.NodeRef imageToRender) |
void |
testALF3733() |
void |
testAutoRotateImage()
This test method takes an image with Exif Orientation information and checks if it is automatially rotated.
|
void |
testBuiltinRenditionDefinitions()
This test method ensures that all the 'built-in' renditionDefinitions are
available after startup and that their configuration is correct.
|
void |
testCompositeReformatAndResizeRendition() |
void |
testFailedAsynchronousRendition() |
void |
testGetRenditionsForNode() |
void |
testJavascriptAPI() |
void |
testLoadRenderingAction()
This test method saves one RenderingAction to the repository and loads it
back up asserting that it is equivalent to the original.
|
void |
testPathBasedRenditionOverwrite()
If we're using path based renditions, it's allowed for
two source nodes to end up rendering into folder with
the same name as each other.
|
void |
testReformatImage()
Tests that the ReformatActionExecutor can be used to render images into
different formats.
|
void |
testRenderCropImage()
This test method used the RenditionService to render a test image (of
type PNG) as a cropped image of the same type.
|
void |
testRenderDocumentInAnotherFormatInSitu()
This test method uses the RenditionService to render a test document (of
type PDF) into a different format (of type plain_text) and place the
rendition under the source node.
|
void |
testRenderDocumentInAnotherFormatUnderSpecifiedFolder()
This test method used the RenditionService to render a test document (of
type PDF) into a different format (of type plain_text) and place the
rendition under the specified folder.
|
void |
testRenderFreeMarkerTemplate() |
void |
testRenderFreeMarkerTemplateOneTransaction() |
void |
testRenderFreemarkerTemplatePath() |
void |
testRenderPdfDocumentToFlash()
This test method uses the RenditionService to render a test document (of
type PDF) into a different format (of type
application/x-shockwave-flash).
|
void |
testRenderRescaledImage()
This test method used the RenditionService to render a test image (of
type PNG) as a rescaled image of the same type.
|
void |
testRenderValidContentThenUpdateToInvalidContent()
This test checks that for a node with an existing rendition, that if you update its content with content
that cannot be renditioned (thumbnailed), that existing rendition nodes for failed re-renditions are removed.
|
void |
testRenditionPlacements()
Using a dummy rendition engine, perform a number of
renditions, both single and composite, to check that
the renditions always end up as they should do.
|
void |
testSaveAndLoadCompositeRenditionDefinition() |
void |
testSaveRenderingAction()
Checks that the saveRenderingAction Method creates the proper node in the
repository.
|
void |
testSuccessfulAsynchronousRendition() |
void |
testSuitablyMarkedNodesDoNotGetRenditioned()
Tests that source nodes with a suitable marker aspect on them are not renditioned.
|
createNode
flushAndClear, getConfigLocations, getSession, loadContext, setSessionFactory
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding
endTransaction, isDefaultRollback, isRollback, onSetUp, onSetUpBeforeTransaction, onTearDown, onTearDownAfterTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare
countTestCases, createResult, getName, run, run, runTest, setName, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
protected void onSetUpInTransaction() throws java.lang.Exception
BaseAlfrescoSpringTest
onSetUpInTransaction
in class BaseAlfrescoSpringTest
java.lang.Exception
protected void onTearDownInTransaction() throws java.lang.Exception
onTearDownInTransaction
in class BaseAlfrescoSpringTest
java.lang.Exception
public void testRenderFreeMarkerTemplate() throws java.lang.Exception
java.lang.Exception
public void testRenderFreeMarkerTemplateOneTransaction() throws java.lang.Exception
java.lang.Exception
public void testRenderFreemarkerTemplatePath() throws java.lang.Exception
java.lang.Exception
public void testRenderDocumentInAnotherFormatInSitu() throws java.lang.Exception
java.lang.Exception
public void testRenderPdfDocumentToFlash() throws java.lang.Exception
java.lang.Exception
public void testCompositeReformatAndResizeRendition() throws java.lang.Exception
java.lang.Exception
public void testRenderDocumentInAnotherFormatUnderSpecifiedFolder() throws java.lang.Exception
java.lang.Exception
public void testRenderCropImage() throws java.lang.Exception
java.lang.Exception
public void testRenderRescaledImage() throws java.lang.Exception
java.lang.Exception
public void testReformatImage() throws java.lang.Exception
java.lang.Exception
public void testSuitablyMarkedNodesDoNotGetRenditioned() throws java.lang.Exception
java.lang.Exception
public void testSuccessfulAsynchronousRendition() throws java.lang.Exception
java.lang.Exception
public void testFailedAsynchronousRendition() throws java.lang.Exception
java.lang.Exception
#testSuccessfulAsynchronousRendition()}
public void testGetRenditionsForNode() throws java.lang.Exception
java.lang.Exception
protected org.alfresco.service.cmr.repository.NodeRef performImageRendition(java.util.Map parameterValues, org.alfresco.service.cmr.repository.NodeRef imageToRender)
public void testSaveRenderingAction() throws java.lang.Exception
java.lang.Exception
public void off_test_CleanPersistedRenditionsAndCreateExportedACP() throws java.lang.Exception
java.lang.Exception
public void testLoadRenderingAction() throws java.lang.Exception
java.lang.Exception
public void testSaveAndLoadCompositeRenditionDefinition() throws java.lang.Exception
java.lang.Exception
public void testBuiltinRenditionDefinitions() throws java.lang.Exception
java.lang.Exception
public void testRenderValidContentThenUpdateToInvalidContent() throws java.lang.Exception
java.lang.Exception
public void testALF3733() throws java.lang.Exception
java.lang.Exception
public void testPathBasedRenditionOverwrite() throws java.lang.Exception
java.lang.Exception
public void testRenditionPlacements() throws java.lang.Exception
java.lang.Exception
public void testJavascriptAPI() throws java.lang.Exception
java.lang.Exception
public void testAutoRotateImage() throws java.lang.Exception
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.