]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.core/src/test/resources/org/argeo/slc/core/execution/xml/containers.xml
Fix description tag
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / test / resources / org / argeo / slc / core / execution / xml / containers.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
4 xmlns:flow="http://www.argeo.org/schema/slc-flow" xmlns:aop="http://www.springframework.org/schema/aop"
5 xsi:schemaLocation="
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
8 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
9 http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">
10
11 <import resource="classpath:org/argeo/slc/core/execution/spring.xml" />
12 <import resource="classpath:/org/argeo/slc/core/test/spring.xml" />
13
14 <bean id="testResult" class="org.argeo.slc.core.test.SimpleTestResult" />
15
16 <bean id="testDef" class="org.argeo.slc.core.test.BasicTestDefinition" />
17
18 <bean id="testRunTemplate" class="org.argeo.slc.core.test.SimpleTestRun" abstract="true">
19 <property name="testDefinition" ref="testDef" />
20 <property name="testResult" ref="testResult"/>
21 </bean>
22
23 <flow:spec id="test.list.spec">
24 <flow:ref name="list1" targetClass="java.util.List">
25 <flow:value>
26 <!-- a list element can be used directly as default value-->
27 <list>
28 <value>val1</value>
29 </list>
30 </flow:value>
31 </flow:ref>
32 <flow:ref name="list2" targetClass="java.util.List" />
33 <!-- following parameters are not used in flow -->
34 <flow:ref name="dummyMap" targetClass="java.util.Map">
35 <flow:value>
36 <map></map>
37 </flow:value>
38 </flow:ref>
39 <flow:ref name="dummySet" targetClass="java.util.Set">
40 <flow:value>
41 <set></set>
42 </flow:value>
43 </flow:ref>
44 <flow:ref name="dummyProperties" targetClass="java.util.Properties">
45 <flow:value>
46 <props></props>
47 </flow:value>
48 </flow:ref>
49
50 </flow:spec>
51
52
53 <flow:flow id="test.list.flowTemplate" abstract="true" spec="test.list.spec"
54 path="/path">
55 <bean parent="task.echo">
56 <property name="message" value="list1=@{list1}, list2=@{list2}" />
57 <flow:variable/>
58 </bean>
59
60 <bean parent="testRunTemplate">
61 <property name="testData">
62 <bean class="org.argeo.slc.core.test.BasicTestData">
63 <property name="expected">
64 <flow:param name="list1"/>
65 </property>
66 <property name="reached">
67 <flow:param name="list2"/>
68 </property>
69 </bean>
70 </property>
71 </bean>
72
73 </flow:flow>
74
75 <flow:flow id="test.list.flow1" parent="test.list.flowTemplate">
76 <flow:arg name="list1">
77 <list>
78 <value>val1</value>
79 <value>val2</value>
80 </list>
81 </flow:arg>
82 <flow:arg name="list2">
83 <list>
84 <value>val1</value>
85 <value>val2</value>
86 </list>
87 </flow:arg>
88
89 <!-- not used in flow (just to test that the syntax is accepted): -->
90 <flow:arg name="dummyMap">
91 <map></map>
92 </flow:arg>
93 <flow:arg name="dummySet">
94 <set></set>
95 </flow:arg>
96 <flow:arg name="dummyProperties">
97 <props></props>
98 </flow:arg>
99
100 </flow:flow>
101
102 <flow:flow id="test.list.flow2" parent="test.list.flowTemplate">
103 <description>use default value for parameter "list1"</description>
104 <flow:arg name="list2">
105 <list>
106 <value>val1</value>
107 </list>
108 </flow:arg>
109 </flow:flow>
110
111
112 </beans>