curcuru     2003/02/18 11:04:52

  Modified:    test/java/src/org/apache/qetest/rwapi XPathASTTestlet.java
  Log:
  Also output name of test used for each XPath
  
  Revision  Changes    Path
  1.3       +6 -5      
xml-xalan/test/java/src/org/apache/qetest/rwapi/XPathASTTestlet.java
  
  Index: XPathASTTestlet.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/rwapi/XPathASTTestlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XPathASTTestlet.java      18 Feb 2003 17:27:32 -0000      1.2
  +++ XPathASTTestlet.java      18 Feb 2003 19:04:52 -0000      1.3
  @@ -259,7 +259,7 @@
               for (Enumeration enum = matchpats.elements();
                       enum.hasMoreElements(); /* no increment portion */ )
               {
  -                logXPath((String)enum.nextElement());
  +                logXPath((String)enum.nextElement(), 
datalet.getDescription());
               }
           }
           if (null != selectpats)
  @@ -267,7 +267,7 @@
               for (Enumeration enum = selectpats.elements();
                       enum.hasMoreElements(); /* no increment portion */ )
               {
  -                logXPath((String)enum.nextElement());
  +                logXPath((String)enum.nextElement(), 
datalet.getDescription());
               }
           }
       }
  @@ -279,10 +279,11 @@
        * <p>NEEDSWORK: Overrideen to put out a default pass record.</p>
        *
        * @param String to construct XPath from
  +     * @param String used as comment for where this test came from
        */
  -    protected void logXPath(String xpStr)
  +    protected void logXPath(String xpStr, String desc)
       {
  -        String comment = "XPATH::" + xpStr + "::";
  +        String comment = desc + " XPATH{" + xpStr + "}";
           try
           {
               // Construct AST, ensure non-null, and dump
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to