xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From santiag...@apache.org
Subject cvs commit: xml-xalan/test/java/src/org/apache/qetest/xsl StylesheetTestlet.java
Date Tue, 16 Apr 2002 16:25:23 GMT
santiagopg    02/04/16 09:25:23

  Modified:    test/java/src/org/apache/qetest/xsl StylesheetTestlet.java
  Log:
  Avoid re-setting the 'fileChecker' property when loading a list of files.
  
  Revision  Changes    Path
  1.10      +13 -1     xml-xalan/test/java/src/org/apache/qetest/xsl/StylesheetTestlet.java
  
  Index: StylesheetTestlet.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/java/src/org/apache/qetest/xsl/StylesheetTestlet.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- StylesheetTestlet.java	12 Feb 2002 19:52:31 -0000	1.9
  +++ StylesheetTestlet.java	16 Apr 2002 16:25:23 -0000	1.10
  @@ -93,7 +93,7 @@
    * subclassing easier for alternate testing algoritims.
    *
    * @author Shane_Curcuru@lotus.com
  - * @version $Id: StylesheetTestlet.java,v 1.9 2002/02/12 19:52:31 curcuru Exp $
  + * @version $Id: StylesheetTestlet.java,v 1.10 2002/04/16 16:25:23 santiagopg Exp $
    */
   public class StylesheetTestlet extends TestletImpl
   {
  @@ -262,7 +262,19 @@
       {
           // See if the datalet already has a fileChecker to use...
           CheckService fileChecker = (CheckService)datalet.options.get("fileCheckerImpl");
  +
           // ...if not, construct a default one with attributes
  +        if (null == fileChecker) {
  +	    String fcName = datalet.options.getProperty("fileChecker");
  +	    Class fcClazz = QetestUtils.testClassForName(fcName,
  +							 QetestUtils.defaultPackages, 
  +							 null);
  +	    if (null != fcClazz) {
  +		fileChecker = (CheckService) fcClazz.newInstance();
  +		fileChecker.applyAttributes(datalet.options);
  +	    }
  +	}
  +	
           if (null == fileChecker)
           {
               fileChecker = QetestFactory.newCheckService(logger, QetestFactory.TYPE_FILES);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message