You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ju...@apache.org on 2003/02/13 11:10:29 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker TProcessorTestExecuter.java MultiTProcessorExecuter.java

juergen     2003/02/13 02:10:29

  Modified:    testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker
                        TProcessorTestExecuter.java
                        MultiTProcessorExecuter.java
  Log:
  minor change, the dtd is not hard coded any more.
  
  Revision  Changes    Path
  1.7       +32 -32    jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker/TProcessorTestExecuter.java
  
  Index: TProcessorTestExecuter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker/TProcessorTestExecuter.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TProcessorTestExecuter.java	25 Apr 2002 21:15:14 -0000	1.6
  +++ TProcessorTestExecuter.java	13 Feb 2003 10:10:28 -0000	1.7
  @@ -83,14 +83,14 @@
    * @version $Revision$
    */
   public class TProcessorTestExecuter extends TestCase {
  -    
  -    
  -    
  +
  +
  +
       protected String xdavHome = System.getProperty("xdav.home");
       protected String xdavHost = System.getProperty("xdav.host");
       protected String xdavPort = System.getProperty("xdav.port");
  -    
  -    
  +
  +
       /**
        ** Constructor that creates the GenericBeanContextChildTest with the given name.
        ** Constructor description
  @@ -108,36 +108,36 @@
               System.out.println("xdav.home is not set!");
               throw new Error("xdav.home is not set!");
           }
  -        
  +
           xdavHome = xdavHome+java.io.File.separatorChar+"testsuite";
           xdavHome = xdavHome+java.io.File.separatorChar+"junit";
           xdavHome = xdavHome+java.io.File.separatorChar+"xmltestcases";
       }
  -    
  -    
  -    
  -    
  +
  +
  +
  +
       static PrintStream  resultOutput = null;
       static boolean      result       = true;
       public void testExceuteAllXMLFileByTProcessor() throws Exception {
  -        
  +
           final int[] testCaseCount = new int[2];
  -        
  +
           testCaseCount[0] = 0;
           testCaseCount[1] = 0;
  -        
  +
           resultOutput = new java.io.PrintStream(new FileOutputStream(xdavHome+java.io.File.separatorChar+".."+java.io.File.separatorChar+"testCasesResults.xml"));
  -        
  +
           long time = System.currentTimeMillis();
           java.util.Date startDate = new java.util.Date();
  -        
  +
           resultOutput.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
  -        resultOutput.println("<!DOCTYPE testSuite SYSTEM \"testCasesResults.dtd\">");
  +//        resultOutput.println("<!DOCTYPE testSuite SYSTEM \"testCasesResults.dtd\">");
           resultOutput.println("<testSuite>");
           resultOutput.println("   <excecutionDate>" + new java.text.SimpleDateFormat("dd.MM.yy HH:mm").format(startDate) + "</excecutionDate>");
           resultOutput.println("   <resultFileName>" + xdavHome+java.io.File.separatorChar+".."+java.io.File.separatorChar+"testCasesResults.xml" + "</resultFileName>");
  -        
  -        
  +
  +
           String[] filter = new String[1];
           filter[0] = "*.xml";
           String[] exclude = new String[1];
  @@ -155,16 +155,16 @@
                       }
                   }
                                                       );
  -        
  +
           resultOutput.println("   <result>" + (!result?"ERROR":"Success") + "</result>");
           resultOutput.println("   <time>" + ((System.currentTimeMillis() - time)) + "</time>");
           resultOutput.println("   <testElementCount>" + testCaseCount[0] + "</testElementCount>");
           resultOutput.println("   <testElementErrors>" + testCaseCount[1] + "</testElementErrors>");
           resultOutput.println("</testSuite>");
           resultOutput.close();
  -        
  -        
  -        
  +
  +
  +
           System.out.println();
           System.out.println();
           System.out.println();
  @@ -182,13 +182,13 @@
           System.out.println("</testSuite>");
           System.out.println();
           System.out.println();
  -        
  -        
  -        
  +
  +
  +
       }
  -    
  -    
  -    
  +
  +
  +
   }
   
   
  
  
  
  1.6       +5 -5      jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker/MultiTProcessorExecuter.java
  
  Index: MultiTProcessorExecuter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/walker/MultiTProcessorExecuter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- MultiTProcessorExecuter.java	16 Jan 2003 16:16:45 -0000	1.5
  +++ MultiTProcessorExecuter.java	13 Feb 2003 10:10:28 -0000	1.6
  @@ -123,7 +123,7 @@
           java.util.Date startDate = new java.util.Date();
   
           resultOutput.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
  -        resultOutput.println("<!DOCTYPE testSuite SYSTEM \"testCasesResults.dtd\">");
  +//        resultOutput.println("<!DOCTYPE testSuite SYSTEM \"testCasesResults.dtd\">");
           resultOutput.println("<testSuite>");
           resultOutput.println("   <excecutionDate>" + new java.text.SimpleDateFormat("dd.MM.yy HH:mm").format(startDate) + "</excecutionDate>");
           resultOutput.println("   <resultFileName>" + xdavHome+java.io.File.separatorChar+".."+java.io.File.separatorChar+"testCasesResults.xml" + "</resultFileName>");
  
  
  

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