You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/11/14 10:28:33 UTC

cvs commit: xml-batik/test-sources/org/apache/batik/test DefaultTestSuite.java

vhardy      01/11/14 01:28:33

  Modified:    test-sources/org/apache/batik/apps/rasterizer MainTest.java
               test-sources/org/apache/batik/test DefaultTestSuite.java
  Log:
  Commented out PDF test which cannot be run by default (because of the FOP
  dependency).
  
  Revision  Changes    Path
  1.3       +5 -5      xml-batik/test-sources/org/apache/batik/apps/rasterizer/MainTest.java
  
  Index: MainTest.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/apps/rasterizer/MainTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MainTest.java	2001/10/31 09:54:26	1.2
  +++ MainTest.java	2001/11/14 09:28:33	1.3
  @@ -24,7 +24,7 @@
    * Validates the operation of the <tt>Main</tt> class.
    *
    * @author <a href="vhardy@apache.org">Vincent Hardy</a>
  - * @version $Id: MainTest.java,v 1.2 2001/10/31 09:54:26 vhardy Exp $
  + * @version $Id: MainTest.java,v 1.3 2001/11/14 09:28:33 vhardy Exp $
    */
   public class MainTest extends DefaultTestSuite {
       
  @@ -124,7 +124,7 @@
           addTest(t);
           t.setId("MainConfigTest.mimeType.png");
   
  -        t = new MainConfigTest("-m image/pdf") {
  +        /*t = new MainConfigTest("-m image/pdf") {
                   public TestReport validate(SVGConverter c){
                       DestinationType type = c.getDestinationType();
                       if(type.equals(DestinationType.PDF)){
  @@ -137,7 +137,7 @@
               };
       
           addTest(t);
  -        t.setId("MainConfigTest.mimeType.pdf");
  +        t.setId("MainConfigTest.mimeType.pdf");*/
   
           t = new MainConfigTest("-m image/tiff") {
                   public TestReport validate(SVGConverter c){
  @@ -301,10 +301,10 @@
   
           t = new MainConfigTest("-dpi 5.08"){
                   public TestReport validate(SVGConverter c){
  -                    if(c.getPixelToMillimeter() == .5f){
  +                    if(c.getPixelToMillimeter() == 5f){
                           return reportSuccess();
                       } else {
  -                        return reportError("-dpi", ".5f", "" + c.getPixelToMillimeter());
  +                        return reportError("-dpi", "5f", "" + c.getPixelToMillimeter());
                       }
                   }
               };
  
  
  
  1.5       +6 -2      xml-batik/test-sources/org/apache/batik/test/DefaultTestSuite.java
  
  Index: DefaultTestSuite.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/test/DefaultTestSuite.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultTestSuite.java	2001/10/16 10:38:10	1.4
  +++ DefaultTestSuite.java	2001/11/14 09:28:33	1.5
  @@ -15,7 +15,7 @@
    * Default implementation of the <tt>TestSuite</tt> interface.
    *
    * @author <a href="mailto:vhardy@apache.lorg">Vincent Hardy</a>
  - * @version $Id: DefaultTestSuite.java,v 1.4 2001/10/16 10:38:10 vhardy Exp $
  + * @version $Id: DefaultTestSuite.java,v 1.5 2001/11/14 09:28:33 vhardy Exp $
    */
   public class DefaultTestSuite extends AbstractTest implements TestSuite {
       /**
  @@ -59,7 +59,11 @@
           while(iter.hasNext()){
               Test t = (Test)iter.next();
               System.err.println("Running " + t.getName());
  -            report.addReport(t.run());
  +            TestReport tr = t.run();
  +            if (tr == null){
  +                System.out.println("ERROR" + t.getId() + " returned a null report");
  +            }
  +            report.addReport(tr);
           }
   
           return report;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org