Search in sources :

Example 11 with TemporaryResourceReference

use of org.xwiki.resource.temporary.TemporaryResourceReference in project xwiki-platform by xwiki.

the class BatikSVGRasterizerTest method rasterizeToTemporaryResourceReturnsNullOnExceptions.

@Test
public void rasterizeToTemporaryResourceReturnsNullOnExceptions() throws Exception {
    TemporaryResourceReference tref = this.mocker.getComponentUnderTest().rasterizeToTemporaryResource(INVALID_SVG, 0, 0);
    Assert.assertNull(tref);
}
Also used : TemporaryResourceReference(org.xwiki.resource.temporary.TemporaryResourceReference) Test(org.junit.Test)

Aggregations

TemporaryResourceReference (org.xwiki.resource.temporary.TemporaryResourceReference)11 File (java.io.File)6 Test (org.junit.Test)6 ByteArrayInputStream (java.io.ByteArrayInputStream)2 ExpandedMacroBlock (org.xwiki.rendering.block.ExpandedMacroBlock)2 ImageBlock (org.xwiki.rendering.block.ImageBlock)2 MetaDataBlock (org.xwiki.rendering.block.MetaDataBlock)2 ClassBlockMatcher (org.xwiki.rendering.block.match.ClassBlockMatcher)2 ResourceReference (org.xwiki.rendering.listener.reference.ResourceReference)2 TemporaryResourceStore (org.xwiki.resource.temporary.TemporaryResourceStore)2 InputStream (java.io.InputStream)1 Type (java.lang.reflect.Type)1 HashSet (java.util.HashSet)1 Before (org.junit.Before)1 CacheException (org.xwiki.cache.CacheException)1 InitializationException (org.xwiki.component.phase.InitializationException)1 DefaultParameterizedType (org.xwiki.component.util.DefaultParameterizedType)1 Container (org.xwiki.container.Container)1 AttachmentReference (org.xwiki.model.reference.AttachmentReference)1 DocumentReference (org.xwiki.model.reference.DocumentReference)1