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:
Roy Wetherall
2011-11-07 10:42:21 +00:00
parent 16dae2196e
commit 75bb9a4bfc

View File

@@ -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);
}
/**