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");
|
checkRenditioned(jpgOrig, "small");
|
||||||
checkRendition("small", thumbnail1);
|
checkRendition("small", thumbnail1);
|
||||||
|
|
||||||
try
|
// 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,
|
||||||
this.thumbnailService.createThumbnail(jpgOrig, ContentModel.PROP_CONTENT, MimetypeMap.MIMETYPE_IMAGE_JPEG,
|
|
||||||
imageTransformationOptions, "small");
|
imageTransformationOptions, "small");
|
||||||
fail("A duplicate exception should have been raised");
|
assertNotNull(duplicate);
|
||||||
}
|
assertEquals(duplicate, thumbnail1);
|
||||||
catch (ThumbnailException exception)
|
|
||||||
{
|
|
||||||
// OK since this should have been thrown
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user