public class ThumbnailServiceImplTest extends BaseAlfrescoSpringTest
actionService, authenticationComponent, authenticationService, contentService, nodeService, rootNodeRef, storeRef, transactionServicesessionFactoryjdbcTemplatetransactionDefinition, transactionManager, transactionStatusAUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO| Constructor and Description |
|---|
ThumbnailServiceImplTest() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String[] |
getConfigLocations()
Get the config locations
|
protected void |
onSetUpInTransaction()
Called during the transaction setup
|
void |
testAutoUpdate() |
void |
testCreateFailingThumbnail() |
void |
testCreateRenditionThumbnailFromImage() |
void |
testCreateRenditionThumbnailFromPdf() |
void |
testCreateThumbnailFromImage() |
void |
testCreateTransientlyFailingThumbnail()
From 4.0.1 we support 'transient' thumbnail failure.
|
void |
testDuplicationNames() |
void |
testGetThumbnailByName() |
void |
testHTMLToImageAndSWF() |
void |
testJSAPI() |
void |
testPlaceHoldersByMimeType()
This test method tests the thumbnail placeholders which are handled in the
ScriptThumbnailService. |
void |
testRegistry() |
void |
testThumbnailServiceCreateApi() |
void |
testThumbnailUpdate() |
createNode, onTearDownInTransactionflushAndClear, getSession, loadContext, setSessionFactorycountRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncodingendTransaction, isDefaultRollback, isRollback, onSetUp, onSetUpBeforeTransaction, onTearDown, onTearDownAfterTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransactiongetAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariablescontextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDownaddContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirtygetDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBarecountTestCases, createResult, getName, run, run, runTest, setName, toStringassertEquals, 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, formatprotected void onSetUpInTransaction()
throws java.lang.Exception
onSetUpInTransaction in class BaseAlfrescoSpringTestjava.lang.Exceptionprotected java.lang.String[] getConfigLocations()
BaseSpringTestgetConfigLocations in class BaseSpringTestpublic void testCreateRenditionThumbnailFromImage()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateRenditionThumbnailFromPdf()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateThumbnailFromImage()
throws java.lang.Exception
java.lang.Exceptionpublic void testDuplicationNames()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateFailingThumbnail()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateTransientlyFailingThumbnail()
throws java.lang.Exception
ContentTransformer
cannot attempt to perform the transformation for some reason (e.g. process/service unavailable) and wishes
to decline the request. Such 'failures' should not lead to the addition of the ContentModel.ASPECT_FAILED_THUMBNAIL_SOURCE
aspect.java.lang.Exceptionpublic void testThumbnailUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetThumbnailByName()
throws java.lang.Exception
java.lang.Exceptionpublic void testAutoUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testHTMLToImageAndSWF()
throws java.lang.Exception
java.lang.Exceptionpublic void testThumbnailServiceCreateApi()
throws java.lang.Exception
java.lang.Exceptionpublic void testRegistry()
public void testJSAPI()
throws java.lang.Exception
java.lang.Exceptionpublic void testPlaceHoldersByMimeType()
throws java.lang.Exception
ScriptThumbnailService.
See ALF-6566.java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.