mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-9605: Fix up unit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31784 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -248,16 +248,12 @@ public class ThumbnailServiceImplTest extends BaseAlfrescoSpringTest
|
||||
checkRenditioned(jpgOrig, "small");
|
||||
checkRendition("small", thumbnail1);
|
||||
|
||||
try
|
||||
{
|
||||
this.thumbnailService.createThumbnail(jpgOrig, ContentModel.PROP_CONTENT, MimetypeMap.MIMETYPE_IMAGE_JPEG,
|
||||
// the origional thumbnail is returned if we are attempting to create a duplicate
|
||||
NodeRef duplicate = this.thumbnailService.createThumbnail(jpgOrig, ContentModel.PROP_CONTENT, MimetypeMap.MIMETYPE_IMAGE_JPEG,
|
||||
imageTransformationOptions, "small");
|
||||
fail("A duplicate exception should have been raised");
|
||||
}
|
||||
catch (ThumbnailException exception)
|
||||
{
|
||||
// OK since this should have been thrown
|
||||
}
|
||||
assertNotNull(duplicate);
|
||||
assertEquals(duplicate, thumbnail1);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user