cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/test/anteater internalRequest.xml
Date Thu, 09 Oct 2003 18:07:34 GMT
cziegeler    2003/10/09 11:07:34

  Added:       src/webapp/samples/test a.xml sitemap.xmap
               src/webapp/samples/test/simpletest-mounted c.xml
                        sitemap.xmap
               src/test/anteater internalRequest.xml
  Log:
  Adding test samples provided by Sam Coward for testing the internal request handling
  Adding anteater test case
  
  Revision  Changes    Path
  1.1                  cocoon-2.1/src/webapp/samples/test/a.xml
  
  Index: a.xml
  ===================================================================
  <test file="a" xmlns:cinclude="http://apache.org/cocoon/include/1.0">
  
  	<note>Now i'm going to include something from a sitemap mounted below here</note>
  
  	<cinclude:include src="cocoon:/simpletest-mounted/includer"/>
  
  </test>
  
  
  
  1.1                  cocoon-2.1/src/webapp/samples/test/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
    <map:components>
      <map:generators default="file"/>
      <map:transformers default="xslt"/>
      <map:readers default="resource"/>
      <map:serializers default="html"/>
      <map:selectors default="browser"/>
      <map:matchers default="wildcard"/>
    </map:components>
    <map:pipelines>
      <map:pipeline>
        <map:match pattern="simpletest-content/**">
          <map:generate src="{1}"/>
          <map:serialize type="xml"/>
        </map:match>
        <map:match pattern="simpletest-mounted/**">
          <map:mount src="simpletest-mounted/" uri-prefix="simpletest-mounted"/>
        </map:match>
        <map:match pattern="simpletest">
          <map:generate src="cocoon:/simpletest-content/a.xml"/>
          <map:transform type="cinclude"/>
          <map:serialize type="xml"/>
        </map:match>
      </map:pipeline>
    </map:pipelines>
  </map:sitemap>
  
  
  
  1.1                  cocoon-2.1/src/webapp/samples/test/simpletest-mounted/c.xml
  
  Index: c.xml
  ===================================================================
  <test file="c">
  	<note>This is c.xml served from the sitemap mounted below</note>
  </test>
  
  
  
  1.1                  cocoon-2.1/src/webapp/samples/test/simpletest-mounted/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
    <map:components>
      <map:generators default="file"/>
      <map:transformers default="xslt"/>
      <map:readers default="resource"/>
      <map:serializers default="html"/>
      <map:selectors default="browser"/>
      <map:matchers default="wildcard"/>
    </map:components>
    <map:pipelines>
      <map:pipeline>
        <map:match pattern="includer">
          <map:generate src="c.xml"/>
          <map:serialize type="xml"/>
        </map:match>
      </map:pipeline>
    </map:pipelines>
  </map:sitemap>
  
  
  
  1.1                  cocoon-2.1/src/test/anteater/internalRequest.xml
  
  Index: internalRequest.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  
  <project name="internal-request-test" default="internal-request-test">
  
    <group id="default">
      <property name="usetidy" value="false"/>
    </group>
  
    <!-- Simulate the behavior of a user that opens a browser, starts
    the calculator example, and goes back in the processing several
    times. -->
    <target name="internal-request-test">
      <property name="internal-request-test" value="${cocoon}/samples/test/simpletest"/>
  
        <httpRequest href="${internal-request-test}"
  		   description="Test the internal request handling">
          <match>
            <xpath select="test/test/@file" value="c"/>
          </match>
        </httpRequest>
    </target>
  </project>
  
  
  

Mime
View raw message