bodewig     2003/03/11 02:42:28

  Modified:    src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka
                        XMLReportTest.java
  Log:
  Make test more robust.  In particular - make it pass on Mac OS X.
  
  Revision  Changes    Path
  1.3       +5 -2      
ant/src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReportTest.java
  
  Index: XMLReportTest.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReportTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XMLReportTest.java        10 Feb 2003 14:14:54 -0000      1.2
  +++ XMLReportTest.java        11 Mar 2003 10:42:28 -0000      1.3
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001,2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -64,6 +64,7 @@
   import javax.xml.transform.stream.StreamResult;
   
   import junit.framework.TestCase;
  +import org.apache.tools.ant.types.Path;
   import org.w3c.dom.Document;
   import org.w3c.dom.Node;
   import org.w3c.dom.NodeList;
  @@ -95,7 +96,9 @@
           incl.setMethod("set*");
           filters.addInclude(incl);
           report.setReportFilters(filters);
  -        Document doc = report.createDocument(new String[]{ 
System.getProperty("java.home") + "/lib/rt.jar"});
  +        Path p = new Path(null);
  +        p.addJavaRuntime();
  +        Document doc = report.createDocument(p.list());
   
           Node snapshot = doc.getDocumentElement();
           assertEquals("snapshot", snapshot.getNodeName());
  
  
  

Reply via email to