cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jheym...@apache.org
Subject svn commit: r330548 [81/132] - in /cocoon/whiteboard/maven2/cocoon-flat-layout: ./ cocoon-ajax-block/ cocoon-ajax-block/api/ cocoon-ajax-block/api/src/ cocoon-ajax-block/api/src/main/ cocoon-ajax-block/api/src/main/java/ cocoon-ajax-block/api/src/main/...
Date Thu, 03 Nov 2005 14:00:48 GMT
Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/SaxBufferTestCase.java
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/SaxBufferTestCase.java?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/SaxBufferTestCase.java (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/SaxBufferTestCase.java Thu Nov  3 05:41:06 2005
@@ -0,0 +1,108 @@
+/*
+ * Copyright 1999-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.xml;
+
+import java.io.ByteArrayInputStream;
+
+import javax.xml.parsers.SAXParser;
+import javax.xml.parsers.SAXParserFactory;
+
+import org.apache.cocoon.xml.dom.DOMBuilder;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.helpers.DefaultHandler;
+
+/**
+ * Testcase for SaxBuffer
+ *
+ * @author <a href="mailto:tcurdt@apache.org">Torsten Curdt</a>
+ * @version
+ */
+
+public final class SaxBufferTestCase extends AbstractXMLTestCase {
+    public SaxBufferTestCase(String s) {
+        super(s);
+    }
+
+    public void testCompareDOM() throws Exception {
+        DOMBuilder in = new DOMBuilder();
+        generateLargeSAX(in);
+
+        SaxBuffer sb = new SaxBuffer();
+        generateLargeSAX(sb);
+
+        DOMBuilder out = new DOMBuilder();
+        sb.toSAX(out);
+
+        assertXMLEqual(in.getDocument(), out.getDocument());
+    }
+
+    public void testStressLoop() throws Exception {
+        SaxBuffer sb = new SaxBuffer();
+
+        long loop = 10000;
+
+        // simply consume documents
+        long start = System.currentTimeMillis();
+        for(int i=0;i<loop;i++) {
+            generateSmallSAX(sb);
+            sb.recycle();
+        }
+        long stop = System.currentTimeMillis() + 1;
+
+        double r = 1000*loop/(stop-start);
+        System.out.println("consuming: "+ r + " documents per second");
+    }
+
+    public void testCompareToParsing() throws Exception {
+        DOMBuilder in = new DOMBuilder();
+        generateSmallSAX(in);
+
+        SAXParserFactory pfactory = SAXParserFactory.newInstance();
+        SAXParser p = pfactory.newSAXParser();
+
+
+        SaxBuffer b = new SaxBuffer();
+        DefaultHandlerWrapper wrapper = new DefaultHandlerWrapper(b);
+        ByteArrayInputStream bis = new ByteArrayInputStream(generateByteArray());
+
+        long loop = 10000;
+
+        long start = System.currentTimeMillis();
+        for(int i=0;i<loop;i++) {
+            b.recycle();
+            bis.reset();
+            p.parse(bis,wrapper);
+        }
+        long stop = System.currentTimeMillis() + 1;
+
+        double r = 1000*loop/(stop-start);
+        System.out.println("parsed:" + r + " documents per second");
+
+
+        ContentHandler ch = new DefaultHandler();
+
+        start = System.currentTimeMillis();
+        for(int i=0;i<loop;i++) {
+            b.toSAX(ch);
+        }
+        stop = System.currentTimeMillis() + 1;
+
+        r = 1000*loop/(stop-start);
+        System.out.println("recalling: " + r + " documents per second");
+    }
+
+
+}

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/SaxBufferTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/WhitespaceFilter.java
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/WhitespaceFilter.java?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/WhitespaceFilter.java (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/WhitespaceFilter.java Thu Nov  3 05:41:06 2005
@@ -0,0 +1,139 @@
+/*
+ * Copyright 1999-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.xml;
+
+import org.apache.cocoon.xml.AbstractXMLPipe;
+
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.SAXException;
+
+/**
+ * A SAX filter to remove whitespace character, which disturb the
+ * XML matching process.
+ *
+ * @author <a href="mailto:stephan@apache.org">Stephan Michels</a>
+ * @version CVS $Id: WhitespaceFilter.java 30941 2004-07-29 19:56:58Z vgritsenko $
+ */
+public class WhitespaceFilter extends AbstractXMLPipe {
+    private StringBuffer buffer = null;
+
+    /**
+     * Create a new WhitespaceFilter.
+     *
+     * @param handler Content handler.
+     */
+    public WhitespaceFilter(ContentHandler handler) {
+        setContentHandler(handler);
+    }
+
+    /**
+     * Receive notification of character data.
+     */
+    public void characters(char c[], int start, int len) throws SAXException {
+        if (contentHandler==null) {
+            return;
+        }
+
+        if (buffer==null) {
+            buffer = new StringBuffer();
+        }
+
+        buffer.append(c, start, len);
+    }
+
+    /**
+     * Receive notification of ignorable whitespace in element content.
+     */
+    public void ignorableWhitespace(char c[], int start,
+                                    int len) throws SAXException {
+        // ignore
+    }
+
+    /**
+     * Receive notification of the beginning of an element.
+     */
+    public void startElement(String namespaceURI, String localName,
+                             String qName,
+                             Attributes atts) throws SAXException {
+
+        pushText();      
+        contentHandler.startElement(namespaceURI, localName, qName, atts);
+    }
+
+    /**
+     * Receive notification of the end of an element.
+     */
+    public void endElement(String uri, String loc, String raw)
+        throws SAXException {
+
+        pushText();
+        contentHandler.endElement(uri, loc, raw);        
+    }
+
+    /**
+     * Receive notification of a processing instruction.
+     */
+    public void processingInstruction(String target, String data)
+        throws SAXException {
+
+        pushText();
+        contentHandler.processingInstruction(target, data);
+    }
+
+    /**
+     * Report an XML comment anywhere in the document.
+     *
+     * @param ch An array holding the characters in the comment.
+     * @param start The starting position in the array.
+     * @param len The number of characters to use from the array.
+     */
+    public void comment(char ch[], int start, int len)
+        throws SAXException {
+  
+        pushText();
+        super.comment(ch, start, len);
+    }
+
+
+    public void pushText() throws SAXException {
+
+        if (buffer!=null) {
+            String text = buffer.toString();
+
+            StringBuffer normalized = new StringBuffer();
+
+            for(int i=0; i<text.length(); i++) {
+                if (Character.isWhitespace(text.charAt(i))) {
+                    normalized.append(' ');
+                    while (((i+1)<text.length()) && (Character.isWhitespace(text.charAt(i+1))))
+                        i++;
+                } else {
+                    normalized.append(text.charAt(i));
+                }
+            }
+
+            text = normalized.toString().trim();
+
+            if (text.length()>0) {
+                contentHandler.characters(text.toCharArray(), 0,
+                                          text.length());
+            }
+
+            buffer = null;
+        }
+    }
+}

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/WhitespaceFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderStreamerTestCase.java
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderStreamerTestCase.java?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderStreamerTestCase.java (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderStreamerTestCase.java Thu Nov  3 05:41:06 2005
@@ -0,0 +1,248 @@
+/*
+ * Copyright 1999-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.xml.dom;
+
+import org.custommonkey.xmlunit.XMLTestCase;
+import org.custommonkey.xmlunit.XMLUnit;
+
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+import org.xml.sax.helpers.AttributesImpl;
+
+/**
+ * Testcase for DOMStreamer and DOMBuilder.
+ *
+ * @author <a href="mailto:stephan@apache.org">Stephan Michels</a>
+ * @version CVS $Id: DOMBuilderStreamerTestCase.java 30941 2004-07-29 19:56:58Z vgritsenko $
+ */
+public class DOMBuilderStreamerTestCase extends XMLTestCase {
+
+    public DOMBuilderStreamerTestCase(String name) {
+        super(name);
+    }
+
+    public void testBuilderWithOneElement() throws Exception {
+        AttributesImpl atts = new AttributesImpl();
+
+        DOMBuilder builder = new DOMBuilder();
+        builder.startDocument();
+        builder.startElement("", "root", "root", atts);
+        builder.endElement("", "root", "root");
+        builder.endDocument();
+
+        Document document = XMLUnit.buildControlDocument("<root/>");
+        assertXMLEqual(document, builder.getDocument());
+    }
+
+    public void testBuilderWithMoreElements() throws Exception {
+        AttributesImpl atts = new AttributesImpl();
+
+        DOMBuilder builder = new DOMBuilder();
+        builder.startDocument();
+        builder.startElement("", "root", "root", atts);
+        builder.startElement("", "node", "node", atts);
+        builder.endElement("", "node", "node");
+        builder.startElement("", "node", "node", atts);
+        builder.endElement("", "node", "node");
+        builder.endElement("", "root", "root");
+        builder.endDocument();
+
+        Document document = XMLUnit.buildControlDocument("<root><node/><node/></root>");
+        assertXMLEqual(document, builder.getDocument());
+    }
+
+    public void testBuilderWithText() throws Exception {
+        AttributesImpl atts = new AttributesImpl();
+
+        DOMBuilder builder = new DOMBuilder();
+        builder.startDocument();
+        builder.startElement("", "root", "root", atts);
+        builder.characters("abcd".toCharArray(), 0, 4);
+        builder.endElement("", "root", "node");
+        builder.endDocument();
+
+        Document document = XMLUnit.buildControlDocument("<root>abcd</root>");
+        assertXMLEqual(document, builder.getDocument());
+    }
+
+    /*public void testBuilderWithNS()  throws Exception {
+        AttributesImpl atts = new AttributesImpl();
+
+        DOMBuilder builder = new DOMBuilder();
+        builder.startDocument();
+        builder.startPrefixMapping("", "http://xml.apache.org");
+        builder.startElement("", "root", "root", atts);
+        builder.endElement("", "node", "node");
+        builder.endPrefixMapping("");
+        builder.endDocument();
+
+        Document document = XMLUnit.buildControlDocument("<root xmlns=\"http://xml.apache.org\"/>");
+        assertXMLEqual(document, builder.getDocument());
+    }*/
+
+    /*public void testBuilderWithPrefix()  throws Exception {
+        AttributesImpl atts = new AttributesImpl();
+
+        DOMBuilder builder = new DOMBuilder();
+        builder.startDocument();
+        builder.startPrefixMapping("bla", "http://xml.apache.org");
+        builder.startElement("http://xml.apache.org", "root", "bla:root", atts);
+        builder.endElement("http://xml.apache.org", "root", "bla:root");
+        builder.endPrefixMapping("bla");
+        builder.endDocument();
+
+        Document document = XMLUnit.buildControlDocument("<bla:root xmlns:bla=\"http://xml.apache.org\"/>");
+        assertXMLEqual(document, builder.getDocument());
+    }*/
+
+    /*public void testBuilderWithNSError()  throws Exception {
+        AttributesImpl atts = new AttributesImpl();
+
+        DOMBuilder builder = new DOMBuilder();
+
+        try {
+            builder.startDocument();
+            builder.startPrefixMapping("bla", "http://xml.apache.org");
+            atts.addAttribute( "", "bla", "xmlns:bla", "CDATA", "http://xml.apache.org");
+            builder.startElement("http://xml.apache.org", "root", "bla:root", atts);
+            builder.endElement("http://xml.apache.org", "root", "bla:root");
+            builder.endPrefixMapping("bla");
+            builder.endDocument();
+
+            fail("DOMBuilder should throw exception because of permitted attribute");
+        } catch (Exception e) {
+            // nothing
+        }
+    }*/
+
+    public void testBuilderWithComments() throws Exception {
+        AttributesImpl atts = new AttributesImpl();
+
+        DOMBuilder builder = new DOMBuilder();
+        builder.startDocument();
+        builder.startElement("", "root", "root", atts);
+        builder.comment("abcd".toCharArray(), 0, 4);
+        builder.endElement("", "root", "node");
+        builder.endDocument();
+
+        Document document = XMLUnit.buildControlDocument("<root><!--abcd--></root>");
+
+        assertXMLEqual(document, builder.getDocument());
+    }
+
+    public void testBuilderWithCommentWithinDocType() throws Exception {
+        AttributesImpl atts = new AttributesImpl();
+
+        DOMBuilder builder = new DOMBuilder();
+        builder.startDocument();
+        builder.startDTD("skinconfig", null, null);
+        builder.comment("abcd".toCharArray(), 0, 4);
+        builder.endDTD();
+        builder.startElement("", "root", "root", atts);
+        builder.endElement("", "root", "node");
+        builder.endDocument();
+
+        Document document = XMLUnit.buildControlDocument("<!DOCTYPE skinconfig [<!--abcd-->]><root></root>");
+
+        print(document);
+        print(builder.getDocument());
+
+        assertXMLEqual(document, builder.getDocument());
+    }
+
+    public final void print(Document document) {
+        TransformerFactory factory = TransformerFactory.newInstance();
+        try
+        {
+          javax.xml.transform.Transformer serializer = factory.newTransformer();
+          serializer.transform(new DOMSource(document), new StreamResult(System.out));
+          System.out.println();
+        }
+        catch (TransformerException te)
+        {
+          te.printStackTrace();
+        }
+    }
+
+
+    public void testTestFacility() throws Exception {
+        Document document = XMLUnit.getControlParser().newDocument();
+        Element elemA = document.createElement("root");
+        document.appendChild(elemA);
+
+        Document oneElementDocument = XMLUnit.buildControlDocument("<root/>");
+        assertXMLEqual(oneElementDocument, document);
+
+        document = XMLUnit.getControlParser().newDocument();
+        elemA = document.createElement("node");
+        document.appendChild(elemA);
+
+        oneElementDocument = XMLUnit.buildControlDocument("<root/>");
+        assertXMLNotEqual(oneElementDocument, document);
+    }
+
+    public void testStreamer() throws Exception {
+
+        Document document = XMLUnit.getControlParser().newDocument();
+        Element elemA = document.createElement("root");
+        document.appendChild(elemA);
+
+        Element elemB = document.createElement("node");
+        elemA.appendChild(elemB);
+        
+        elemB = document.createElement("node");
+        elemA.appendChild(elemB);
+
+        DOMBuilder builder = new DOMBuilder();
+        DOMStreamer streamer = new DOMStreamer(builder);
+
+        streamer.stream(document);
+
+        document = builder.getDocument();
+
+        Document moreElementDocument = XMLUnit.buildControlDocument("<root><node/><node/></root>");
+        assertXMLEqual(moreElementDocument, document);
+    }
+
+    /*public void testStreamerWithNS() throws Exception {
+
+        Document document = XMLUnit.getControlParser().newDocument();
+        Element elemA = document.createElementNS("http://xml.apache.org", "root");
+        document.appendChild(elemA);
+
+        Element elemB = document.createElementNS("http://xml.apache.org", "node");
+        elemA.appendChild(elemB);
+
+        elemB = document.createElementNS("http://xml.apache.org", "node");
+        elemA.appendChild(elemB);
+
+        DOMBuilder builder = new DOMBuilder();
+        DOMStreamer streamer = new DOMStreamer(builder);
+
+        streamer.stream(document);
+    
+        document = builder.getDocument();
+    
+        Document moreElementDocument = XMLUnit.buildControlDocument("<root xmlns=\"http://xml.apache.org\"><node/><node/></root>");
+        assertXMLEqual(moreElementDocument, document);
+    }*/
+}

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderStreamerTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderTestCase.java
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderTestCase.java?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderTestCase.java (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderTestCase.java Thu Nov  3 05:41:06 2005
@@ -0,0 +1,67 @@
+/*
+ * Copyright 1999-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.xml.dom;
+
+import junit.framework.TestCase;
+
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.AttributesImpl;
+
+
+/**
+ * JUnit Testcase for {@link DOMBuilder}.
+ * 
+ * @version CVS $Id: DOMBuilderTestCase.java 30941 2004-07-29 19:56:58Z vgritsenko $
+ */
+public class DOMBuilderTestCase extends TestCase {
+
+    /**
+     * Constructor.
+     * @param name
+     */
+    public DOMBuilderTestCase(String name) {
+        super(name);
+    }
+
+    /**
+     * Test if two consecutive "characters" events result in two text nodes
+     * whose concatenation is equal to the concatenation
+     * of the two strings (cfr. bug #26219).
+     * 
+     * @throws SAXException
+     */
+    public void testMultipleCharactersEvents() throws SAXException {
+        DOMBuilder builder = new DOMBuilder();
+        Attributes attrs = new AttributesImpl();
+        char c1[] = "ABC".toCharArray();
+        char c2[] = "DEF".toCharArray();
+        builder.startDocument();
+        builder.startElement("", "test", "test", attrs);
+        builder.characters(c1, 0, 3);
+        builder.characters(c2, 0, 3);
+        builder.endElement("", "test", "test");
+        builder.endDocument();
+        Document dom = builder.getDocument();
+        StringBuffer value = new StringBuffer();
+        for (int i = 0 ; i < dom.getDocumentElement().getChildNodes().getLength() ; ++i) {
+            value.append(dom.getDocumentElement().getChildNodes().item(i).getNodeValue());
+        }
+        assertEquals("Content of root element not what expected",
+                "ABCDEF", value.toString()); 
+    }
+}

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/java/org/apache/cocoon/xml/dom/DOMBuilderTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/acting/RequestParamActionTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/acting/RequestParamActionTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/acting/RequestParamActionTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/acting/RequestParamActionTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,46 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.excalibur.source.SourceFactorySelector"
+        shorthand="source-factories"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+
+  <role name="org.apache.excalibur.source.SourceResolver"
+        shorthand="source-resolver"
+        default-class="org.apache.excalibur.source.impl.SourceResolverImpl"/>
+
+  <role name="org.apache.cocoon.acting.ActionSelector"
+        shorthand="actions"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <source-factories>
+   <component-instance class="org.apache.excalibur.source.impl.ResourceSourceFactory" name="resource"/>
+   <component-instance class="org.apache.excalibur.source.impl.URLSourceFactory" name="*"/>
+  </source-factories>
+
+  <source-resolver class="org.apache.excalibur.source.impl.SourceResolverImpl"/>
+
+  <actions logger="test">
+   <component-instance class="org.apache.cocoon.acting.RequestParamAction" 
+                       name="request"/>
+  </actions>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolverTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolverTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolverTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolverTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.components.modules.input.InputModuleSelector"
+        shorthand="input-modules"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+   <input-modules>
+       <component-instance class="org.apache.cocoon.components.modules.input.RequestParameterModule" logger="core.modules.input" name="request-param"/>
+       <component-instance class="org.apache.cocoon.components.modules.input.BaseLinkModule" logger="core.modules.input" name="baselink"/>
+   </input-modules>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/environment/commandline/test/package.html
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/environment/commandline/test/package.html?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/environment/commandline/test/package.html (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/environment/commandline/test/package.html Thu Nov  3 05:41:06 2005
@@ -0,0 +1,28 @@
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<html>
+<head>
+  <title>Search</title>
+</head>
+<body>
+  <h1>Test Cases Environment Commandline</h1>
+  <p>
+    This package provides Cocoon environment commandline test cases.
+  </p>
+  <p>
+    For more information @see org.apache.cocoon.environment.commandline
+  </p>
+</body>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/environment/commandline/test/package.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/FileGeneratorTestCase.source.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/FileGeneratorTestCase.source.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/FileGeneratorTestCase.source.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/FileGeneratorTestCase.source.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<a>
+ <b>bla bla bla</b>
+ <c xmlns="http://xml.apache.org/cocoon/schema/bla/1.0">
+  <d>bla</d>
+ </c>
+</a>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/FileGeneratorTestCase.source.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/VirtualPipelineGeneratorTestCase.xconf
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/VirtualPipelineGeneratorTestCase.xconf?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/VirtualPipelineGeneratorTestCase.xconf (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/VirtualPipelineGeneratorTestCase.xconf Thu Nov  3 05:41:06 2005
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<cocoon version="2.2">
+
+  <include src="resource://org/apache/cocoon/cocoon.roles"/>
+
+  <xml-parser class="org.apache.excalibur.xml.impl.JaxpParser">
+    <parameter name="validate" value="false"/>
+    <parameter name="namespace-prefixes" value="false"/>
+    <parameter name="stop-on-warning" value="true"/>
+    <parameter name="stop-on-recoverable-error" value="true"/>
+    <parameter name="reuse-parsers" value="false"/>
+  </xml-parser>
+
+  <xmlizer/>
+
+  <input-modules>
+    <component-instance class="org.apache.cocoon.components.modules.input.EnvironmentAttributeModule" name="environment-attr"/>
+  </input-modules>
+
+  <source-factories>
+    <component-instance class="org.apache.excalibur.source.impl.ResourceSourceFactory" name="resource"/>
+    <component-instance class="org.apache.cocoon.components.source.impl.ContextSourceFactory" name="context"/>
+    <component-instance class="org.apache.cocoon.components.source.impl.ModuleSourceFactory" name="module"/>
+    <component-instance class="org.apache.cocoon.components.source.impl.XModuleSourceFactory" name="xmodule"/>
+    <component-instance class="org.apache.excalibur.source.impl.FileSourceFactory" name="file"/>
+    <component-instance class="org.apache.excalibur.source.impl.URLSourceFactory" name="*"/>
+  </source-factories>
+
+  <!-- Relative sitemap path works during sitemap execution but
+       give exceptions during decommissioning -->
+  <sitemap file="resource://org/apache/cocoon/generation/vpc-sitemap.xmap"/>
+
+</cocoon>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/VirtualPipelineGeneratorTestCase.xconf
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-input1.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-input1.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-input1.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-input1.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,120 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--
+Skin configuration file. This file contains details of your project, which will
+be used to configure the chosen Forrest skin.
+-->
+
+<!DOCTYPE skinconfig [
+
+  <!ENTITY % links.att 'name CDATA #REQUIRED'>
+  <!ENTITY % link.att 'name CDATA #REQUIRED href CDATA #REQUIRED'>
+  <!ELEMENT skinconfig (disable-search?, disable-compliance-links?, searchsite-domain?, searchsite-name?,
+  project-name, project-url, project-logo, group-name?, group-url?, group-logo?,
+  host-url?, host-logo?, year?, vendor?, trail?, credits?)*>
+  <!ELEMENT credits (credit*)>
+  <!ELEMENT credit (name, url, image?, width?, height?)>
+  <!-- id uniquely identifies the tool, and role indicates its function -->
+  <!ATTLIST credit id   CDATA #IMPLIED
+                   role CDATA #IMPLIED>
+  <!ELEMENT disable-search (#PCDATA)>
+  <!ELEMENT disable-compliance-links (#PCDATA)>
+  <!ELEMENT searchsite-domain (#PCDATA)>
+  <!ELEMENT searchsite-name (#PCDATA)>  
+  <!ELEMENT project-name (#PCDATA)>
+  <!ELEMENT project-url (#PCDATA)>
+  <!ELEMENT project-logo (#PCDATA)>
+  <!ELEMENT group-name (#PCDATA)>
+  <!ELEMENT group-url (#PCDATA)>
+  <!ELEMENT group-logo (#PCDATA)>
+  <!ELEMENT host-url (#PCDATA)>
+  <!ELEMENT host-logo (#PCDATA)>
+  <!ELEMENT year (#PCDATA)>
+  <!ELEMENT vendor (#PCDATA)>
+  <!ELEMENT trail (link1, link2, link3)>
+  <!ELEMENT link1 EMPTY>
+  <!-- Seems we can't use param entity refs until this is DTDified -->
+  <!ATTLIST link1 name CDATA #REQUIRED href CDATA #IMPLIED>
+  <!ELEMENT link2 EMPTY>
+  <!ATTLIST link2 name CDATA #REQUIRED href CDATA #IMPLIED>
+  <!ELEMENT link3 EMPTY>
+  <!ATTLIST link3 name CDATA #REQUIRED href CDATA #IMPLIED>
+  <!ELEMENT name (#PCDATA)>
+  <!ELEMENT url (#PCDATA)>
+  <!ELEMENT image (#PCDATA)>
+  <!ELEMENT width (#PCDATA)>
+  <!ELEMENT height (#PCDATA)>
+  ]>
+
+<skinconfig>
+  <!-- Do we want to disable the Google search box? -->
+  <disable-search>false</disable-search>
+  <disable-compliance-links>false</disable-compliance-links>
+
+  <searchsite-domain>xml.apache.org</searchsite-domain>
+  <searchsite-name>Apache XML</searchsite-name>  
+
+  <!-- mandatory project logo
+       skin: forrest-site renders it at the top -->
+  <project-name>Forrest</project-name>
+  <project-url>http://xml.apache.org/forrest/</project-url>
+  <project-logo>images/project-logo.gif</project-logo>
+
+  <!-- optional group logo
+       skin: forrest-site renders it at the top-left corner -->
+  <group-name>Apache XML</group-name>
+  <group-url>http://xml.apache.org/</group-url>
+  <group-logo>images/group-logo.gif</group-logo>
+
+  <!-- optional host logo (e.g. sourceforge logo)
+       skin: forrest-site renders it at the bottom-left corner -->
+  <host-url></host-url>
+  <host-logo></host-logo>
+
+  <!-- The following are used to construct a copyright statement -->
+  <year>2002</year>
+  <vendor>The Apache Software Foundation.</vendor>
+
+  <!-- Some skins use this to form a 'breadcrumb trail' of links. If you don't
+  want these, set the attributes to blank. The DTD purposefully requires them.
+  -->
+  <trail>
+    <link1 name="apache" href="http://www.apache.org/"/>
+    <link2 name="xml.apache" href="http://xml.apache.org/"/>
+    <link3 name="" href=""/>
+  </trail>
+
+  <!-- Credits are typically rendered as a set of small clickable images in the
+  page footer -->
+  <credits>
+    <credit>
+      <name>Built with Cocoon</name>
+      <url>http://xml.apache.org/cocoon/</url>
+      <image>images/built-with-cocoon.gif</image>
+      <width>88</width>
+      <height>31</height>
+    </credit>
+    <credit>
+      <name>Krysalis Centipede</name>
+      <url>http://www.krysalis.org/centipede/</url>
+      <image>images/centipede-logo-small.gif</image>
+      <width>138</width>
+      <height>31</height>
+    </credit>
+  </credits>
+</skinconfig>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-input1.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-result1.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-result1.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-result1.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-result1.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<skinconfig>
+<!-- Do we want to disable the Google search box? -->
+  <disable-search>false</disable-search>
+  <disable-compliance-links>false</disable-compliance-links>
+  <searchsite-domain>xml.apache.org</searchsite-domain>
+  <searchsite-name>Apache XML</searchsite-name>
+<!-- mandatory project logo
+       skin: forrest-site renders it at the top -->
+  <project-name>Forrest</project-name>
+  <project-url>http://xml.apache.org/forrest/</project-url>
+  <project-logo>images/project-logo.gif</project-logo>
+<!-- optional group logo
+       skin: forrest-site renders it at the top-left corner -->
+  <group-name>Apache XML</group-name>
+  <group-url>http://xml.apache.org/</group-url>
+  <group-logo>images/group-logo.gif</group-logo>
+<!-- optional host logo (e.g. sourceforge logo)
+       skin: forrest-site renders it at the bottom-left corner -->
+  <host-url/>
+  <host-logo/>
+<!-- The following are used to construct a copyright statement -->
+  <year>2002</year>
+  <vendor>The Apache Software Foundation.</vendor>
+<!-- Some skins use this to form a 'breadcrumb trail' of links. If you don't
+  want these, set the attributes to blank. The DTD purposefully requires them.
+  -->
+  <trail>
+    <link1 name="apache" href="http://www.apache.org/"/>
+    <link2 name="xml.apache" href="http://xml.apache.org/"/>
+    <link3 name="" href=""/>
+  </trail>
+<!-- Credits are typically rendered as a set of small clickable images in the
+  page footer -->
+  <credits>
+    <credit>
+      <name>Built with Cocoon</name>
+      <url>http://xml.apache.org/cocoon/</url>
+      <image>images/built-with-cocoon.gif</image>
+      <width>88</width>
+      <height>31</height>
+    </credit>
+    <credit>
+      <name>Krysalis Centipede</name>
+      <url>http://www.krysalis.org/centipede/</url>
+      <image>images/centipede-logo-small.gif</image>
+      <width>138</width>
+      <height>31</height>
+    </credit>
+  </credits>
+</skinconfig>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/filetest-result1.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- SVN $Id$ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:pipelines>
+    <map:pipeline>
+
+      <map:match pattern="v3">
+        <map:generate type="virtual3">
+          <map:parameter name="source" value="test.xml"/>
+          <map:parameter name="foo" value="bar"/>
+        </map:generate>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <map:match pattern="v4">
+        <map:generate type="virtual4" src="test.xml"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/test.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/test.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/test.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/test.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><test/>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/sub/test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param-expected.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param-expected.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param-expected.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param-expected.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><test foo2="bar"/>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param-expected.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<test foo2="${cocoon.parameters.foo2}"/>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-param.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- SVN $Id$ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:components>
+    <map:generators default="file">
+      <map:generator name="file" src="org.apache.cocoon.generation.FileGenerator"/>
+      <map:generator name="jx" src="org.apache.cocoon.generation.JXTemplateGenerator"/>
+      <map:generator name="virtual1" src="org.apache.cocoon.generation.VirtualPipelineGenerator">
+        <map:generate type="file" src="vpc-test.xml"/>
+      </map:generator>
+      <map:generator name="virtual2" src="org.apache.cocoon.generation.VirtualPipelineGenerator">
+        <map:generate type="jx" src="vpc-param.xml">
+           <map:parameter name="foo2" value="{foo}"/>
+        </map:generate>
+      </map:generator>
+      <map:generator name="virtual3" src="org.apache.cocoon.generation.VirtualPipelineGenerator">
+        <map:source param="source"/>
+        <map:generate type="jx" src="vpc-source-param.xml">
+           <map:parameter name="source" value="{source}"/>
+           <map:parameter name="foo2" value="{foo}"/>
+        </map:generate>
+      </map:generator>
+      <map:generator name="virtual4" src="org.apache.cocoon.generation.VirtualPipelineGenerator">
+        <map:generate src="{src}"/>
+      </map:generator>
+    </map:generators>
+
+    <map:transformers default="xslt">
+      <map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer">
+        <xslt-processor-role>xalan</xslt-processor-role>
+      </map:transformer>
+    </map:transformers>
+
+    <map:serializers default="xml">
+      <map:serializer mime-type="text/xml" name="xml" src="org.apache.cocoon.serialization.XMLSerializer"/>
+    </map:serializers>
+
+    <map:matchers default="wildcard">
+      <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
+    </map:matchers>
+
+    <map:pipes default="noncaching">
+      <map:pipe name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline">
+      </map:pipe>
+    </map:pipes>
+  </map:components>
+
+  <map:pipelines>
+    <map:pipeline>
+
+      <map:match pattern="test">
+        <map:generate type="file" src="vpc-test.xml"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <map:match pattern="v1">
+        <map:generate type="virtual1"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <map:match pattern="v2">
+        <map:generate type="virtual2">
+          <map:parameter name="foo" value="bar"/>
+        </map:generate>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <map:match pattern="v3">
+        <map:generate type="virtual3">
+          <map:parameter name="source" value="vpc-test.xml"/>
+          <map:parameter name="foo" value="bar"/>
+        </map:generate>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <map:match pattern="sub/**">
+        <map:mount uri-prefix="sub"
+                   src="resource://org/apache/cocoon/generation/sub/"/>
+      </map:match>
+
+      <map:match pattern="v4">
+        <map:generate type="virtual4" src="vpc-test.xml"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param-expected.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param-expected.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param-expected.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param-expected.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><test source="module:environment-attr:env-prefix-generator-source-map-virtual3#source" foo2="bar"/>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param-expected.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<test source="${cocoon.parameters.source}" foo2="${cocoon.parameters.foo2}"/>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-source-param.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-test.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-test.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-test.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-test.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><test/>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/generation/vpc-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/CookieMatcherTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/CookieMatcherTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/CookieMatcherTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/CookieMatcherTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.matching.MatcherSelector"
+        shorthand="matchers"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <matchers logger="test">
+   <component-instance class="org.apache.cocoon.matching.CookieMatcher" 
+                       name="cookie"/>
+  </matchers>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/HeaderMatcherTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/HeaderMatcherTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/HeaderMatcherTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/HeaderMatcherTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.matching.MatcherSelector"
+        shorthand="matchers"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <matchers logger="test">
+   <component-instance class="org.apache.cocoon.matching.HeaderMatcher" 
+                       name="header"/>
+  </matchers>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/ParameterMatcherTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/ParameterMatcherTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/ParameterMatcherTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/ParameterMatcherTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.matching.MatcherSelector"
+        shorthand="matchers"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <matchers logger="test">
+   <component-instance class="org.apache.cocoon.matching.ParameterMatcher" 
+                       name="parameter"/>
+  </matchers>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RegexpURIMatcherTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RegexpURIMatcherTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RegexpURIMatcherTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RegexpURIMatcherTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.matching.MatcherSelector"
+        shorthand="matchers"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <matchers logger="test">
+   <component-instance class="org.apache.cocoon.matching.RegexpURIMatcher" 
+                       name="regexp-uri"/>
+  </matchers>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RequestAttributeMatcherTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RequestAttributeMatcherTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RequestAttributeMatcherTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RequestAttributeMatcherTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.matching.MatcherSelector"
+        shorthand="matchers"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <matchers logger="test">
+   <component-instance class="org.apache.cocoon.matching.RequestAttributeMatcher" 
+                       name="request-attribute"/>
+  </matchers>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RequestParameterMatcherTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RequestParameterMatcherTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RequestParameterMatcherTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/RequestParameterMatcherTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.matching.MatcherSelector"
+        shorthand="matchers"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <matchers logger="test">
+   <component-instance class="org.apache.cocoon.matching.RequestParameterMatcher" 
+                       name="request-parameter"/>
+  </matchers>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/SessionAttributeMatcherTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/SessionAttributeMatcherTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/SessionAttributeMatcherTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/SessionAttributeMatcherTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.matching.MatcherSelector"
+        shorthand="matchers"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <matchers logger="test">
+   <component-instance class="org.apache.cocoon.matching.SessionAttributeMatcher" 
+                       name="session-attribute"/>
+  </matchers>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/WildcardURIMatcherTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/WildcardURIMatcherTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/WildcardURIMatcherTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/matching/WildcardURIMatcherTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.matching.MatcherSelector"
+        shorthand="matchers"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <matchers logger="test">
+   <component-instance class="org.apache.cocoon.matching.WildcardURIMatcher" 
+                       name="wildcard-uri"/>
+  </matchers>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/VirtualPipelineReaderTestCase.xconf
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/VirtualPipelineReaderTestCase.xconf?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/VirtualPipelineReaderTestCase.xconf (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/VirtualPipelineReaderTestCase.xconf Thu Nov  3 05:41:06 2005
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<cocoon version="2.2">
+
+  <include src="resource://org/apache/cocoon/cocoon.roles"/>
+
+  <xml-parser class="org.apache.excalibur.xml.impl.JaxpParser">
+    <parameter name="validate" value="false"/>
+    <parameter name="namespace-prefixes" value="false"/>
+    <parameter name="stop-on-warning" value="true"/>
+    <parameter name="stop-on-recoverable-error" value="true"/>
+    <parameter name="reuse-parsers" value="false"/>
+  </xml-parser>
+
+  <xmlizer/>
+
+  <input-modules>
+    <component-instance class="org.apache.cocoon.components.modules.input.EnvironmentAttributeModule" name="environment-attr"/>
+  </input-modules>
+
+  <source-factories>
+    <component-instance class="org.apache.excalibur.source.impl.ResourceSourceFactory" name="resource"/>
+    <component-instance class="org.apache.cocoon.components.source.impl.ContextSourceFactory" name="context"/>
+    <component-instance class="org.apache.cocoon.components.source.impl.ModuleSourceFactory" name="module"/>
+    <component-instance class="org.apache.cocoon.components.source.impl.XModuleSourceFactory" name="xmodule"/>
+    <component-instance class="org.apache.excalibur.source.impl.FileSourceFactory" name="file"/>
+    <component-instance class="org.apache.excalibur.source.impl.URLSourceFactory" name="*"/>
+  </source-factories>
+
+  <!-- Relative sitemap path works during sitemap execution but
+       give exceptions during decommissioning -->
+  <sitemap file="resource://org/apache/cocoon/reading/vpc-sitemap.xmap"/>
+
+</cocoon>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/VirtualPipelineReaderTestCase.xconf
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-sitemap.xmap?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-sitemap.xmap (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-sitemap.xmap Thu Nov  3 05:41:06 2005
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- SVN $Id$ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:components>
+    <map:generators default="file">
+      <map:generator name="file" src="org.apache.cocoon.generation.FileGenerator"/>
+    </map:generators>
+
+    <map:transformers default="xslt">
+      <map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer">
+        <xslt-processor-role>xalan</xslt-processor-role>
+      </map:transformer>
+    </map:transformers>
+
+    <map:serializers default="xml">
+      <map:serializer mime-type="text/xml" name="xml" src="org.apache.cocoon.serialization.XMLSerializer"/>
+    </map:serializers>
+
+    <map:readers>
+      <map:reader name="virtual1" src="org.apache.cocoon.reading.VirtualPipelineReader">
+        <map:generate type="file" src="vpc-test.xml"/>
+        <map:serialize type="xml"/>
+      </map:reader>
+    </map:readers>
+
+    <map:matchers default="wildcard">
+      <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
+    </map:matchers>
+
+    <map:pipes default="noncaching">
+      <map:pipe name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline">
+      </map:pipe>
+    </map:pipes>
+  </map:components>
+
+  <map:pipelines>
+    <map:pipeline>
+
+      <map:match pattern="v1">
+        <map:read type="virtual1"/>
+      </map:match>
+
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-test.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-test.xml?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-test.xml (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-test.xml Thu Nov  3 05:41:06 2005
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><test/>
\ No newline at end of file

Propchange: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/reading/vpc-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/BrowserSelectorTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/BrowserSelectorTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/BrowserSelectorTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/BrowserSelectorTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,46 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.selection.SelectorSelector"
+        shorthand="selectors"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <selectors logger="test">
+   <component-instance class="org.apache.cocoon.selection.BrowserSelector" 
+                       name="browser">
+      <browser name="explorer" useragent="MSIE"/>
+      <browser name="pocketexplorer" useragent="MSPIE"/>
+      <browser name="handweb" useragent="HandHTTP"/>
+      <browser name="avantgo" useragent="AvantGo"/>
+      <browser name="imode" useragent="DoCoMo"/>
+      <browser name="opera" useragent="Opera"/>
+      <browser name="lynx" useragent="Lynx"/>
+      <browser name="java" useragent="Java"/>
+      <browser name="wap" useragent="Nokia"/>
+      <browser name="wap" useragent="UP"/>
+      <browser name="wap" useragent="Wapalizer"/>
+      <browser name="mozilla5" useragent="Mozilla/5"/>
+      <browser name="mozilla5" useragent="Netscape6/"/>
+      <browser name="netscape" useragent="Mozilla"/>
+    </component-instance>
+  </selectors>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/CookieSelectorTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/CookieSelectorTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/CookieSelectorTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/CookieSelectorTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.selection.SelectorSelector"
+        shorthand="selectors"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <selectors logger="test">
+   <component-instance class="org.apache.cocoon.selection.CookieSelector" 
+                       name="cookie">
+      <cookie-name>cookieSelectorTestCase</cookie-name>
+    </component-instance>
+  </selectors>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/ExceptionSelectorTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/ExceptionSelectorTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/ExceptionSelectorTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/ExceptionSelectorTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.selection.SelectorSelector"
+        shorthand="selectors"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <selectors logger="test">
+   <component-instance class="org.apache.cocoon.selection.ExceptionSelector" 
+                       name="exception">
+      <exception name="npe" class="java.lang.NullPointerException"/>
+      <exception name="not-found" class="org.apache.cocoon.ResourceNotFoundException"/>
+      <exception name="pe" class="org.apache.cocoon.ProcessingException" unroll="true"/>
+    </component-instance>
+  </selectors>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/HeaderSelectorTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/HeaderSelectorTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/HeaderSelectorTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/HeaderSelectorTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.selection.SelectorSelector"
+        shorthand="selectors"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <selectors logger="test">
+   <component-instance class="org.apache.cocoon.selection.HeaderSelector" 
+                       name="header">
+      <header-name>headerSelectorTestCase</header-name>
+    </component-instance>
+  </selectors>
+ </components>
+
+</testcase>

Added: cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/HostSelectorTestCase.xtest
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/HostSelectorTestCase.xtest?rev=330548&view=auto
==============================================================================
--- cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/HostSelectorTestCase.xtest (added)
+++ cocoon/whiteboard/maven2/cocoon-flat-layout/cocoon-core/src/test/resources/org/apache/cocoon/selection/HostSelectorTestCase.xtest Thu Nov  3 05:41:06 2005
@@ -0,0 +1,34 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<testcase>
+ <roles>
+  <role name="org.apache.cocoon.selection.SelectorSelector"
+        shorthand="selectors"
+        default-class="org.apache.cocoon.core.container.StandaloneServiceSelector"/>
+ </roles>
+
+ <components>
+  <selectors logger="test">
+   <component-instance class="org.apache.cocoon.selection.HostSelector" 
+                       name="host">
+      <host name="myhost-eu" value="myhost-dns-name-in-a-europe-country"/>
+      <host name="myhost-us" value="myhost-dns-name-in-a-us-state"/>
+    </component-instance>
+  </selectors>
+ </components>
+
+</testcase>



Mime
View raw message