1 package org.jmage.filter.merge; 2 3 import org.jmage.JmageException; 4 5 import java.io.IOException; 6 import java.util.Properties; 7 8 /*** 9 * Test Imageoverlay failing with opacity greater than 100 10 */ 11 public class ImageOverlayOPACITYGT100 extends ImageOverlayJPG { 12 13 public void setProperties() { 14 Properties props = new Properties(); 15 props.setProperty("IMAGE_URI", "file:///sample/june_vase_small.jpg"); 16 props.setProperty("OPACITY", "150"); 17 request.setFilterChainProperties(props); 18 } 19 20 public void testFilter() throws JmageException, IOException { 21 boolean failed = false; 22 try { 23 dispatcher.dispatch(request); 24 this.writeResults(request); 25 } catch (Throwable t) { 26 failed = true; 27 } 28 assertTrue(failed); 29 } 30 }