curcuru     01/06/27 18:45:21

  Modified:    test/java/src/org/apache/qetest/xalanj2
                        SerializedStylesheetTest.java
  Log:
  Fix problem with gold file (was pointing to wrong one) and update logging for 
non-pass conditions
  
  Revision  Changes    Path
  1.2       +9 -6      
xml-xalan/test/java/src/org/apache/qetest/xalanj2/SerializedStylesheetTest.java
  
  Index: SerializedStylesheetTest.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/xalanj2/SerializedStylesheetTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SerializedStylesheetTest.java     2001/06/14 20:03:05     1.1
  +++ SerializedStylesheetTest.java     2001/06/28 01:45:19     1.2
  @@ -83,7 +83,7 @@
   /**
    * Basic functional test of serialized Templates objects.
    * @author [EMAIL PROTECTED]
  - * @version $Id: SerializedStylesheetTest.java,v 1.1 2001/06/14 20:03:05 
curcuru Exp $
  + * @version $Id: SerializedStylesheetTest.java,v 1.2 2001/06/28 01:45:19 
curcuru Exp $
    */
   public class SerializedStylesheetTest extends XSLProcessorTestBase
   {
  @@ -135,7 +135,7 @@
                                 + File.separator + "Minitest.xsl");
           minitestFileInfo.xmlName = QetestUtils.filenameToURL(inputDir
                                 + File.separator + "Minitest.xml");
  -        minitestFileInfo.goldName = goldDir + File.separator + 
"Minitest.out";
  +        minitestFileInfo.goldName = goldDir + File.separator + 
"Minitest-xalanj2.out";
   
           return true;
       }
  @@ -216,10 +216,13 @@
               Transformer transformer = templates.newTransformer();
               reporter.logInfoMsg("About to transform(xmlDoc, StreamResult(" + 
outNames.nextName() + "))");
               transformer.transform(new 
StreamSource(minitestFileInfo.xmlName), new 
StreamResult(outNames.currentName()));
  -            fileChecker.check(reporter, 
  -                              new File(outNames.currentName()), 
  -                              new File(minitestFileInfo.goldName), 
  -                              "Using serialized Templates, transform into " 
+ outNames.currentName());
  +            if (Logger.PASS_RESULT != 
  +                fileChecker.check(reporter, 
  +                        new File(outNames.currentName()), 
  +                        new File(minitestFileInfo.goldName), 
  +                        "Using serialized Templates, transform into " + 
outNames.currentName())
  +               )
  +                reporter.logStatusMsg("Using serialized Templates: failure 
reason:" + fileChecker.getExtendedInfo());
           }
           catch (Throwable t)
           {
  
  
  

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

Reply via email to