]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.spring/ext/test/org/argeo/slc/core/test/context/applicationContext.xml
Re-activate Spring runtime unit tests.
[gpl/argeo-slc.git] / org.argeo.slc.spring / ext / test / org / argeo / slc / core / test / context / applicationContext.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"
21 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
22
23 <bean id="parentContext.pc1" parent="parentContext.template">
24 <property name="values">
25 <map>
26 <entry key="rootvar" value="text" />
27 </map>
28 </property>
29 <property name="expectedValues">
30 <map>
31 <entry key="reference" value="20" />
32 </map>
33 </property>
34 </bean>
35
36 <bean id="context.c1" parent="context.template">
37 <property name="parentContext" ref="parentContext.pc1" />
38 <property name="values">
39 <map>
40 <entry key="reference" value="20" />
41 <entry key="any" value="999" />
42 <entry key="skipped" value="999" />
43 </map>
44 </property>
45 <property name="expectedValues">
46 <map>
47 <entry key="reference" value="21" />
48 <entry key="any" value="*" />
49 <entry key="skipped" value="!" />
50 </map>
51 </property>
52 </bean>
53
54 <bean id="context.c2" parent="context.template">
55 <property name="parentContext" ref="parentContext.pc1" />
56 <property name="values">
57 <map>
58 <entry key="var" value="37" />
59 <entry key="bad" value="56" />
60 </map>
61 </property>
62 <property name="expectedValues">
63 <map>
64 <entry key="var" value="37" />
65 <entry key="bad" value="57" />
66 </map>
67 </property>
68 </bean>
69
70 <bean id="parentContext.pc2" parent="parentContext.template">
71 <property name="parentContext" ref="parentContext.pc1" />
72 <property name="expectedValues">
73 <map>
74 <entry key="reference" value="40" />
75 </map>
76 </property>
77 </bean>
78
79 <bean id="context.c3" parent="context.template">
80 <property name="parentContext" ref="parentContext.pc2" />
81 <property name="values">
82 <map>
83 <entry key="reference" value="41" />
84 <entry key="rootvar" value="textX" />
85 </map>
86 </property>
87 <property name="expectedValues">
88 <map>
89 <entry key="reference" value="40" />
90 <entry key="rootvar" value="text" />
91 </map>
92 </property>
93 </bean>
94
95
96 <bean id="parentContext.template"
97 class="org.argeo.slc.core.test.context.SimpleParentContextAware"
98 abstract="true">
99 </bean>
100
101 <bean id="context.template"
102 class="org.argeo.slc.core.test.context.SimpleContextAware"
103 abstract="true">
104 </bean>
105 </beans>