]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/ext/test/org/argeo/slc/core/execution/xml/containers.xml
Disable trace logging
[gpl/argeo-slc.git] / org.argeo.slc.core / ext / test / org / argeo / slc / core / execution / xml / containers.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 Copyright (C) 2007-2012 Argeo GmbH
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19 <beans xmlns="http://www.springframework.org/schema/beans"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
21 xmlns:flow="http://www.argeo.org/schema/slc-flow" xmlns:aop="http://www.springframework.org/schema/aop"
22 xsi:schemaLocation="
23 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
24 http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
25 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
26 http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">
27
28 <import resource="classpath:org/argeo/slc/core/execution/spring.xml" />
29 <import resource="classpath:/org/argeo/slc/core/test/spring.xml" />
30
31 <bean id="testResult" class="org.argeo.slc.core.test.SimpleTestResult" />
32
33 <bean id="testDef" class="org.argeo.slc.core.test.BasicTestDefinition" />
34
35 <bean id="testRunTemplate" class="org.argeo.slc.core.test.SimpleTestRun" abstract="true">
36 <property name="testDefinition" ref="testDef" />
37 <property name="testResult" ref="testResult"/>
38 </bean>
39
40 <flow:spec id="test.list.spec">
41 <flow:ref name="list1" targetClass="java.util.List">
42 <flow:value>
43 <!-- a list element can be used directly as default value-->
44 <list>
45 <value>val1</value>
46 </list>
47 </flow:value>
48 </flow:ref>
49 <flow:ref name="list2" targetClass="java.util.List" />
50 <!-- following parameters are not used in flow -->
51 <flow:ref name="dummyMap" targetClass="java.util.Map">
52 <flow:value>
53 <map></map>
54 </flow:value>
55 </flow:ref>
56 <flow:ref name="dummySet" targetClass="java.util.Set">
57 <flow:value>
58 <set></set>
59 </flow:value>
60 </flow:ref>
61 <flow:ref name="dummyProperties" targetClass="java.util.Properties">
62 <flow:value>
63 <props></props>
64 </flow:value>
65 </flow:ref>
66
67 </flow:spec>
68
69
70 <flow:flow id="test.list.flowTemplate" abstract="true" spec="test.list.spec"
71 path="/path">
72 <bean parent="task.echo">
73 <property name="message" value="list1=@{list1}, list2=@{list2}" />
74 <flow:variable/>
75 </bean>
76
77 <bean parent="testRunTemplate">
78 <property name="testData">
79 <bean class="org.argeo.slc.core.test.BasicTestData">
80 <property name="expected">
81 <flow:param name="list1"/>
82 </property>
83 <property name="reached">
84 <flow:param name="list2"/>
85 </property>
86 </bean>
87 </property>
88 </bean>
89
90 </flow:flow>
91
92 <flow:flow id="test.list.flow1" parent="test.list.flowTemplate">
93 <flow:arg name="list1">
94 <list>
95 <value>val1</value>
96 <value>val2</value>
97 </list>
98 </flow:arg>
99 <flow:arg name="list2">
100 <list>
101 <value>val1</value>
102 <value>val2</value>
103 </list>
104 </flow:arg>
105
106 <!-- not used in flow (just to test that the syntax is accepted): -->
107 <flow:arg name="dummyMap">
108 <map></map>
109 </flow:arg>
110 <flow:arg name="dummySet">
111 <set></set>
112 </flow:arg>
113 <flow:arg name="dummyProperties">
114 <props></props>
115 </flow:arg>
116
117 </flow:flow>
118
119 <flow:flow id="test.list.flow2" parent="test.list.flowTemplate">
120 <description>use default value for parameter "list1"</description>
121 <flow:arg name="list2">
122 <list>
123 <value>val1</value>
124 </list>
125 </flow:arg>
126 </flow:flow>
127
128
129 </beans>