You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@locus.apache.org on 2000/12/12 22:05:51 UTC

cvs commit: xml-xalan/test/java/src/org/apache/qetest/trax TemplatesAPITest.java

curcuru     00/12/12 13:05:51

  Modified:    test/java/src/org/apache/qetest/trax TemplatesAPITest.java
  Log:
  Minor updates for getOutputProperties() test
  
  Revision  Changes    Path
  1.4       +8 -5      xml-xalan/test/java/src/org/apache/qetest/trax/TemplatesAPITest.java
  
  Index: TemplatesAPITest.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/java/src/org/apache/qetest/trax/TemplatesAPITest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TemplatesAPITest.java	2000/11/15 22:17:27	1.3
  +++ TemplatesAPITest.java	2000/12/12 21:05:50	1.4
  @@ -134,7 +134,7 @@
       public static final String TRAX_PROCESSOR_XSLT = "javax.xml.transform.TransformerFactory";
   
       /** Known outputFormat property name from outputFormatTest  */
  -    public static final String OUTPUT_FORMAT_NAME = "cdata-section-elements";
  +    public static final String OUTPUT_FORMAT_NAME = OutputKeys.CDATA_SECTION_ELEMENTS;
   
       /** Known outputFormat property value from outputFormatTest  */
       public static final String OUTPUT_FORMAT_VALUE = "cdataHere";
  @@ -304,11 +304,14 @@
               reporter.logHashtable(reporter.STATUSMSG, outputFormat2,
                                     "getOutputProperties for " + outputFormatXSL);
   
  -            String tmp = outputFormat2.getProperty(OUTPUT_FORMAT_NAME);
  -            reporter.check(tmp, OUTPUT_FORMAT_VALUE, "outputProperty " + OUTPUT_FORMAT_NAME + " has known value ?" + tmp + "?");
  -            // HACK: check for another value instead; should cdata-section-elements come back?
  +            String tmp = outputFormat2.getProperty(OUTPUT_FORMAT_NAME); // SPR SCUU4RXSG5 - has extra space
  +            if (OUTPUT_FORMAT_VALUE.equals(tmp))    // Use if so we can put out id with checkPass/checkFail lines
  +                reporter.checkPass("outputProperties " + OUTPUT_FORMAT_NAME + " has known value ?" + tmp + "?", "SCUU4RXSG5");
  +            else
  +                reporter.checkFail("outputProperties " + OUTPUT_FORMAT_NAME + " has known value ?" + tmp + "?", "SCUU4RXSG5");
  +
               tmp = outputFormat2.getProperty("omit-xml-declaration");
  -            reporter.check(tmp, "yes", "outputProperty omit-xml-declaration has known value ?" + tmp + "?");
  +            reporter.check(tmp, "yes", "outputProperties omit-xml-declaration has known value ?" + tmp + "?");
           }
           catch (Exception e)
           {