1   // Copyright 2005, FreeHEP.
2   package org.freehep.graphicsio.pdf.test;
3   
4   import java.util.Properties;
5   
6   import org.freehep.graphicsio.pdf.PDFGraphics2D;
7   import org.freehep.graphicsio.test.TestPreviewThumbnail;
8   import org.freehep.util.UserProperties;
9   
10  /**
11   * @author Mark Donszelmann
12   * @version $Id: PDFTestPreviewThumbnail.java 8584 2006-08-10 23:06:37Z duns $
13   */
14  public class PDFTestPreviewThumbnail extends TestPreviewThumbnail {
15  
16      public PDFTestPreviewThumbnail(String[] args) throws Exception {
17          super(args);
18      }
19  
20      public void runTest(Properties options) throws Exception {
21          UserProperties user = (options == null) ? new UserProperties()
22                  : new UserProperties(options);
23          user.setProperty(PDFGraphics2D.THUMBNAILS, true);
24          
25          super.runTest(user);
26      }
27  
28      public static void main(String[] args) throws Exception {
29          new PDFTestPreviewThumbnail(args).runTest();
30      }
31  }