mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Changed ThumbnailServiceImpl to create renditions of type cm:thumbnail and set the thumbnail name property on them correctly.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -323,6 +323,13 @@ public class ThumbnailServiceImplTest extends BaseAlfrescoSpringTest
|
||||
// Check the content property value
|
||||
assertEquals(ContentModel.PROP_CONTENT, this.nodeService.getProperty(thumbnail,
|
||||
ContentModel.PROP_CONTENT_PROPERTY_NAME));
|
||||
|
||||
// Check the thumbnail is of type cm:thumbnail.
|
||||
assertEquals("The thumbnail node should be of type cm:thumbnail!",
|
||||
ContentModel.TYPE_THUMBNAIL, nodeService.getType(thumbnail));
|
||||
|
||||
// Check the thumbnail name property is correctly set on thumbnail.
|
||||
assertEquals( thumbnailName, nodeService.getProperty(thumbnail, ContentModel.PROP_THUMBNAIL_NAME));
|
||||
}
|
||||
|
||||
private void outputThumbnailTempContentLocation(NodeRef thumbnail, String ext, String message) throws IOException
|
||||
|
Reference in New Issue
Block a user