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 position less than 1
10   */
11  public class ImageOverlayPOSITIONLT1 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("POSITION", "-10");
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  }