]> git.argeo.org Git - gpl/argeo-slc.git/blob - multipleFlow.xml
0d4731b1e620fcbc69d1325772166cf79c5406ef
[gpl/argeo-slc.git] / multipleFlow.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
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
20 <beans xmlns="http://www.springframework.org/schema/beans"
21 xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xmlns:aop="http://www.springframework.org/schema/aop"
23 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
24 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
25
26 <import resource="imports.xml" />
27
28 <bean id="myTestResult" class="org.argeo.slc.core.test.SimpleTestResult" />
29
30 <bean id="myTestDef" class="org.argeo.slc.core.test.BasicTestDefinition" />
31
32 <bean id="myTestRunTemplate" class="org.argeo.slc.core.test.SimpleTestRun" abstract="true">
33 <property name="testDefinition" ref="myTestDef" />
34 <property name="testResult" ref="myTestResult"/>
35 </bean>
36
37 <bean id="fileDiff.spec" parent="slcTemplate.simpleSpec">
38 <property name="attributes">
39 <map>
40 <entry key="fileName">
41 <bean parent="specAttr.primitive" p:isParameter="true" p:type="string"
42 p:isFrozen="true" />
43 </entry>
44 </map>
45 </property>
46 </bean>
47
48
49 <bean id="fileDiff.flowTemplate" parent="slcTemplate.simpleFlow"
50 abstract="true">
51 <property name="path" value="/fileDiff/testcases" />
52 <constructor-arg ref="fileDiff.spec" />
53 <property name="executables">
54 <list>
55 <bean parent="task.echo">
56 <property name="message" value="fileName=@{fileName}" />
57 </bean>
58 <bean parent="myTestRunTemplate">
59 <property name="testData">
60 <bean class="org.argeo.slc.core.test.BasicTestData">
61 <property name="expected" value="file1" />
62 <property name="reached" value="@{fileName}" />
63 </bean>
64 </property>
65 </bean>
66 </list>
67 </property>
68 </bean>
69
70 <bean id="echo" parent="task.echo" scope="prototype">
71 <property name="message" value="fileName=@{fileName}" />
72 </bean>
73
74 <bean id="flow1" parent="fileDiff.flowTemplate">
75 <constructor-arg>
76 <map>
77 <entry key="fileName" value="file1" />
78 </map>
79 </constructor-arg>
80 </bean>
81
82 <bean id="flow2" parent="fileDiff.flowTemplate">
83 <constructor-arg>
84 <map>
85 <entry key="fileName" value="file2" />
86 </map>
87 </constructor-arg>
88 </bean>
89
90
91 <!--
92 <bean id="flow1" parent="slcTemplate.simpleFlow">
93 <property name="path" value="/fileDiff/testcases" />
94 <constructor-arg ref="fileDiff.spec" />
95 <constructor-arg>
96 <map>
97 <entry key="fileName" value="file1" />
98 </map>
99 </constructor-arg>
100 <property name="executables">
101 <list>
102 <bean parent="task.echo" scope="execution">
103 <property name="message" value="fileName=@{fileName}" />
104 <aop:scoped-proxy />
105 </bean>
106 </list>
107 </property>
108 </bean>
109
110 <bean id="flow2" parent="slcTemplate.simpleFlow">
111 <property name="path" value="/fileDiff/testcases" />
112 <constructor-arg ref="fileDiff.spec" />
113 <constructor-arg>
114 <map>
115 <entry key="fileName" value="file2" />
116 </map>
117 </constructor-arg>
118 <property name="executables">
119 <list>
120 <bean parent="task.echo" scope="execution">
121 <property name="message" value="fileName=@{fileName}" />
122 <aop:scoped-proxy />
123 </bean>
124 </list>
125 </property>
126 </bean>
127 -->
128 <!--
129 <bean id="main" parent="slcTemplate.simpleFlow">
130 <property name="executables">
131 <list>
132 <ref bean="flow1"/>
133 <ref bean="flow2"/>
134 </list>
135 </property>
136 </bean>
137 -->
138 </beans>