Added: 
commons/proper/chain/trunk/xml-configuration/src/test/resources/org/apache/commons/chain2/config/test-config.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/chain/trunk/xml-configuration/src/test/resources/org/apache/commons/chain2/config/test-config.xml?rev=1366118&view=auto
==============================================================================
--- 
commons/proper/chain/trunk/xml-configuration/src/test/resources/org/apache/commons/chain2/config/test-config.xml
 (added)
+++ 
commons/proper/chain/trunk/xml-configuration/src/test/resources/org/apache/commons/chain2/config/test-config.xml
 Thu Jul 26 18:04:57 2012
@@ -0,0 +1,118 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+-->
+<catalog>
+
+  <!-- Single command "chains" from CatalogBaseTestCase -->
+  <command   name="AddingCommand"
+        className="org.apache.commons.chain2.impl.AddingCommand"/>
+  <command   name="DelegatingCommand"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+  <command   name="DelegatingFilter"
+        className="org.apache.commons.chain2.impl.DelegatingFilter"/>
+  <command   name="ExceptionCommand"
+        className="org.apache.commons.chain2.impl.ExceptionCommand"/>
+  <command   name="ExceptionFilter"
+        className="org.apache.commons.chain2.impl.ExceptionFilter"/>
+  <command   name="NonDelegatingCommand"
+        className="org.apache.commons.chain2.impl.NonDelegatingCommand"/>
+  <command   name="NonDelegatingFilter"
+        className="org.apache.commons.chain2.impl.NonDelegatingFilter"/>
+  <chain     name="ChainBase"
+        className="org.apache.commons.chain2.config.TestChain"/>
+
+  <!-- Configurable command with settable properties -->
+  <command   name="Configurable"
+        className="org.apache.commons.chain2.config.TestCommand"
+              foo="Foo Value"
+              bar="Bar Value"/>
+
+  <!-- Chains with nested commands -->
+  <chain     name="Execute2a">
+    <command   id="1"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+    <command   id="2"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+    <command   id="3"
+        className="org.apache.commons.chain2.impl.NonDelegatingCommand"/>
+  </chain>
+  <chain     name="Execute2b">
+    <command   id="1"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+    <command   id="2"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+    <command   id="3"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+  </chain>
+  <chain     name="Execute2c">
+    <command   id="1"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+    <command   id="2"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+    <command   id="3"
+        className="org.apache.commons.chain2.impl.ExceptionCommand"/>
+  </chain>
+  <chain      name="Execute2d">
+    <command   id="1"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+    <command   id="2"
+        className="org.apache.commons.chain2.impl.ExceptionCommand"/>
+    <command   id="3"
+        className="org.apache.commons.chain2.impl.NonDelegatingCommand"/>
+  </chain>
+  <chain      name="Execute4a">
+    <command   id="1"
+              id2="a"
+        className="org.apache.commons.chain2.impl.DelegatingFilter"/>
+    <command   id="2"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+    <command   id="3"
+              id2="c"
+        className="org.apache.commons.chain2.impl.NonDelegatingFilter"/>
+  </chain>
+  <chain      name="Execute4b">
+    <command   id="1"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+    <command   id="2"
+              id2="b"
+        className="org.apache.commons.chain2.impl.DelegatingFilter"/>
+    <command   id="3"
+        className="org.apache.commons.chain2.impl.DelegatingCommand"/>
+  </chain>
+  <chain      name="Execute4c">
+    <command   id="1"
+              id2="a"
+        className="org.apache.commons.chain2.impl.DelegatingFilter"/>
+    <command   id="2"
+              id2="b"
+        className="org.apache.commons.chain2.impl.DelegatingFilter"/>
+    <command   id="3"
+              id2="c"
+        className="org.apache.commons.chain2.impl.ExceptionFilter"/>
+  </chain>
+  <chain      name="Execute4d">
+    <command   id="1"
+              id2="a"
+        className="org.apache.commons.chain2.impl.DelegatingFilter"/>
+    <command   id="2"
+              id2="b"
+        className="org.apache.commons.chain2.impl.ExceptionFilter"/>
+    <command   id="3"
+              id2="c"
+        className="org.apache.commons.chain2.impl.NonDelegatingFilter"/>
+  </chain>
+
+</catalog>


Reply via email to