1 package org.jmage.filter.merge; 2 3 import org.jmage.JmageException; 4 import org.jmage.mapper.JunitMapper; 5 6 import java.io.IOException; 7 import java.net.URI; 8 import java.net.URISyntaxException; 9 import java.util.Properties; 10 11 /*** 12 * Test BackgroundImageFilter failing with smaller background image. 13 */ 14 public class BackgroundImageBACKGROUNDSMALL extends JunitMapper { 15 public void setFilterChainURI() throws URISyntaxException { 16 request.setFilterChainURI(new URI("chain:org.jmage.filter.merge.BackgroundImageFilter")); 17 } 18 19 public void setProperties() { 20 Properties props = new Properties(); 21 props.setProperty("IMAGE_URI", "file:///sample/june_vase_small.jpg"); 22 request.setFilterChainProperties(props); 23 } 24 25 public void testFilter() throws JmageException, IOException { 26 assertTrue(this.dispatchFails()); 27 } 28 }