avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test JaxenTestCase.java JaxenTestCase.xtest Saxon6ExtTestCase.java Saxon6ExtTestCase.xtest Saxon6TestCase.java Saxon6TestCase.xtest Saxon7TestCase.java Saxon7TestCase.xtest XPathTestCase.java
Date Wed, 06 Aug 2003 21:49:00 GMT
vgritsenko    2003/08/06 14:49:00

  Modified:    xmlutil/src/test/org/apache/excalibur/xml/xpath/test
                        XPathTestCase.java
  Added:       xmlutil/src/test/org/apache/excalibur/xml/xpath/test
                        JaxenTestCase.java JaxenTestCase.xtest
                        Saxon6ExtTestCase.java Saxon6ExtTestCase.xtest
                        Saxon6TestCase.java Saxon6TestCase.xtest
                        Saxon7TestCase.java Saxon7TestCase.xtest
  Log:
  Add test cases for Jaxen and Saxon xpath processors
  
  Revision  Changes    Path
  1.3       +4 -0      avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/XPathTestCase.java
  
  Index: XPathTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/XPathTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XPathTestCase.java	1 Aug 2003 01:04:50 -0000	1.2
  +++ XPathTestCase.java	6 Aug 2003 21:49:00 -0000	1.3
  @@ -66,6 +66,10 @@
   
   import java.io.StringReader;
   
  +/**
  + * XPath test case.
  + * @version CVS $Revision$ $Date$
  + */
   public class XPathTestCase extends ExcaliburTestCase
   {
       /** A small test document. */
  
  
  
  1.1                  avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/JaxenTestCase.java
  
  Index: JaxenTestCase.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2002 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.excalibur.xml.xpath.test;
  
  /**
   * Test Jaxen XPath processor implementation
   * @version CVS $Revision: 1.1 $ $Date: 2003/08/06 21:49:00 $
   */
  public class JaxenTestCase extends XPathTestCase
  {
      public JaxenTestCase(String name) {
          super(name);
      }
  }
  
  
  
  1.1                  avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/JaxenTestCase.xtest
  
  Index: JaxenTestCase.xtest
  ===================================================================
  <?xml version="1.0"?>
  
  <testcase>
      <annotation>JaxenProcessor test case</annotation>
      <roles>
          <role name="org.apache.excalibur.xml.dom.DOMParser" shorthand="domparser" default-class="org.apache.excalibur.xml.impl.JaxpParser"/>
          <role name="org.apache.excalibur.xml.xpath.XPathProcessor" shorthand="xpathprocessor"
default-class="org.apache.excalibur.xml.xpath.JaxenProcessorImpl"/>
      </roles>
      <components>
          <xpathprocessor>
              <namespace-mappings>
                  <namespace prefix="test" uri="http://localhost/test"/>
              </namespace-mappings>
          </xpathprocessor>
      </components>
  </testcase>
  
  
  
  1.1                  avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/Saxon6ExtTestCase.java
  
  Index: Saxon6ExtTestCase.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2002 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.excalibur.xml.xpath.test;
  
  import org.apache.avalon.excalibur.testcase.ExcaliburTestCase;
  import org.apache.avalon.framework.component.Component;
  import org.apache.excalibur.xml.dom.DOMParser;
  import org.apache.excalibur.xml.xpath.XPathProcessor;
  import org.apache.excalibur.xml.xpath.PrefixResolver;
  import org.xml.sax.InputSource;
  import org.w3c.dom.Document;
  
  import java.io.StringReader;
  
  /**
   * Same as Saxon6TestCase but with foreign (xalan) DOM tree
   * @version CVS $Revision: 1.1 $ $Date: 2003/08/06 21:49:00 $
   */
  public class Saxon6ExtTestCase extends XPathTestCase
  {
      public Saxon6ExtTestCase(String name) {
          super(name);
      }
  }
  
  
  
  1.1                  avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/Saxon6ExtTestCase.xtest
  
  Index: Saxon6ExtTestCase.xtest
  ===================================================================
  <?xml version="1.0"?>
  
  <testcase>
      <annotation>Saxon6ExtProcessor test case</annotation>
      <roles>
          <role name="org.apache.excalibur.xml.dom.DOMParser" shorthand="domparser" default-class="org.apache.excalibur.xml.impl.JaxpParser"/>
          <role name="org.apache.excalibur.xml.xpath.XPathProcessor" shorthand="xpathprocessor"
default-class="org.apache.excalibur.xml.xpath.Saxon6ProcessorImpl"/>
      </roles>
      <components>
          <xpathprocessor>
              <namespace-mappings>
                  <namespace prefix="test" uri="http://localhost/test"/>
              </namespace-mappings>
          </xpathprocessor>
      </components>
  </testcase>
  
  
  
  1.1                  avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/Saxon6TestCase.java
  
  Index: Saxon6TestCase.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2002 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.excalibur.xml.xpath.test;
  
  import org.apache.avalon.excalibur.testcase.ExcaliburTestCase;
  import org.apache.avalon.framework.component.Component;
  import org.apache.excalibur.xml.dom.DOMParser;
  import org.apache.excalibur.xml.xpath.XPathProcessor;
  import org.apache.excalibur.xml.xpath.PrefixResolver;
  import org.xml.sax.InputSource;
  import org.w3c.dom.Document;
  
  import java.io.StringReader;
  
  /**
   * Test Saxon 6 processor with TinyTree DOM implementation
   * @version CVS $Revision: 1.1 $ $Date: 2003/08/06 21:49:00 $
   */
  public class Saxon6TestCase extends XPathTestCase
  {
      public Saxon6TestCase(String name) {
          super(name);
      }
  }
  
  
  
  1.1                  avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/Saxon6TestCase.xtest
  
  Index: Saxon6TestCase.xtest
  ===================================================================
  <?xml version="1.0"?>
  
  <testcase>
      <annotation>Saxon6Processor test case</annotation>
      <roles>
          <role name="org.apache.excalibur.xml.dom.DOMParser" shorthand="domparser" default-class="org.apache.excalibur.xml.impl.JaxpParser"/>
          <role name="org.apache.excalibur.xml.xpath.XPathProcessor" shorthand="xpathprocessor"
default-class="org.apache.excalibur.xml.xpath.Saxon6ProcessorImpl"/>
      </roles>
      <components>
          <domparser>
              <parameter name="sax-parser-factory" value="com.icl.saxon.aelfred.SAXParserFactoryImpl"/>
              <parameter name="document-builder-factory" value="com.icl.saxon.om.DocumentBuilderFactoryImpl"/>
          </domparser>
          <xpathprocessor>
              <namespace-mappings>
                  <namespace prefix="test" uri="http://localhost/test"/>
              </namespace-mappings>
          </xpathprocessor>
      </components>
  </testcase>
  
  
  
  1.1                  avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/Saxon7TestCase.java
  
  Index: Saxon7TestCase.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2002 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.excalibur.xml.xpath.test;
  
  import org.apache.avalon.excalibur.testcase.ExcaliburTestCase;
  import org.apache.avalon.framework.component.Component;
  import org.apache.excalibur.xml.dom.DOMParser;
  import org.apache.excalibur.xml.xpath.XPathProcessor;
  import org.apache.excalibur.xml.xpath.PrefixResolver;
  import org.xml.sax.InputSource;
  import org.w3c.dom.Document;
  
  import java.io.StringReader;
  
  /**
   * Test Saxon 7 XPath processor
   * @version CVS $Revision: 1.1 $ $Date: 2003/08/06 21:49:00 $
   */
  public class Saxon7TestCase extends XPathTestCase
  {
      public Saxon7TestCase(String name) {
          super(name);
      }
  }
  
  
  
  1.1                  avalon-excalibur/xmlutil/src/test/org/apache/excalibur/xml/xpath/test/Saxon7TestCase.xtest
  
  Index: Saxon7TestCase.xtest
  ===================================================================
  <?xml version="1.0"?>
  
  <testcase>
      <annotation>Saxon7Processor test case</annotation>
      <roles>
          <role name="org.apache.excalibur.xml.dom.DOMParser" shorthand="domparser" default-class="org.apache.excalibur.xml.impl.JaxpParser"/>
          <role name="org.apache.excalibur.xml.xpath.XPathProcessor" shorthand="xpathprocessor"
default-class="org.apache.excalibur.xml.xpath.Saxon6ProcessorImpl"/>
      </roles>
      <components>
          <xpathprocessor>
              <namespace-mappings>
                  <namespace prefix="test" uri="http://localhost/test"/>
              </namespace-mappings>
          </xpathprocessor>
      </components>
  </testcase>
  
  
  

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


Mime
View raw message