]> git.argeo.org Git - gpl/argeo-slc.git/blob - cms/org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/test.xml
5ae7501a25a33803ba2db9d2a7b6fd140e7b8ec8
[gpl/argeo-slc.git] / cms / org.argeo.slc.spring / ext / test / org / argeo / slc / core / execution / test.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: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
27 <import resource="imports.xml" />
28
29 <bean id="myTestResult" class="org.argeo.slc.runtime.test.SimpleTestResult" />
30
31 <bean id="myTestDef" class="org.argeo.slc.runtime.test.BasicTestDefinition" />
32
33 <bean id="myTestRunTemplate" class="org.argeo.slc.runtime.test.SimpleTestRun" abstract="true">
34 <property name="testDefinition" ref="myTestDef" />
35 <property name="testResult" ref="myTestResult"/>
36 </bean>
37
38 <bean id="spec1" parent="slcTemplate.simpleSpec">
39 <property name="attributes">
40 <map>
41 <entry key="testedComponentId">
42 <bean parent="specAttr.primitive" p:isParameter="true"
43 p:type="integer" />
44 </entry>
45 <entry key="testData1">
46 <bean parent="specAttr.ref" p:targetClass="org.argeo.slc.runtime.test.BasicTestData"
47 p:isParameter="true" p:isFrozen="true" />
48 </entry>
49 </map>
50 </property>
51 </bean>
52
53 <bean id="flowTemplate1" parent="slcTemplate.simpleFlow"
54 abstract="true">
55 <constructor-arg ref="spec1" />
56 <property name="executables">
57 <list>
58 <bean parent="task.echo">
59 <property name="message" value="From basic @{testedComponentId}" />
60 </bean>
61 <bean parent="myTestRunTemplate">
62 <property name="testData">
63 <bean parent="parameterRef">
64 <constructor-arg value="testData1" />
65 </bean>
66 </property>
67 </bean>
68 <bean parent="task.echo">
69 <property name="message"><value>From basic @{testedComponentId}</value></property>
70 </bean>
71 <bean parent="task.echo">
72 <property name="message"><value>testData1='@{testData1}'</value></property>
73 </bean>
74 </list>
75 </property>
76 </bean>
77
78 <bean id="flow1" parent="flowTemplate1" scope="prototype">
79 <constructor-arg>
80 <map>
81 <entry key="testedComponentId" value="200" />
82 <entry key="testData1">
83 <bean class="org.argeo.slc.runtime.test.BasicTestData" scope="execution">
84 <aop:scoped-proxy/>
85 <property name="expected" value="tata101" />
86 <property name="reached" value="tata@{testedComponentId}" />
87 </bean>
88 </entry>
89 </map>
90 </constructor-arg>
91 </bean>
92
93 </beans>