PageRenderTime 35ms CodeModel.GetById 28ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/tst/org/diffkit/diff/testcase/test31.plan.xml

http://diffkit.googlecode.com/
XML | 301 lines | 263 code | 38 blank | 0 comment | 0 complexity | 3e2dd14d43bae08dca3934406d735dfa MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2
  3<beans xmlns="http://www.springframework.org/schema/beans"
  4	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5	xsi:schemaLocation="http://www.springframework.org/schema/beans
  6http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
  7
  8	<bean id="plan" class="org.diffkit.diff.conf.DKPassthroughPlan">
  9		<property name="lhsSource" ref="lhs.source" />
 10		<property name="rhsSource" ref="rhs.source" />
 11		<property name="sink" ref="sink" />
 12		<property name="tableComparison" ref="table.comparison" />
 13	</bean>
 14
 15	<bean id="table.comparison" class="org.diffkit.diff.engine.DKStandardTableComparison">
 16		<constructor-arg index="0" ref="lhs.table.model" />
 17		<constructor-arg index="1" ref="rhs.table.model" />
 18		<constructor-arg index="2" value="BOTH" />
 19		<constructor-arg index="3">
 20			<list>
 21				<ref bean="column1.comparison" />
 22				<ref bean="column2.comparison" />
 23				<ref bean="column3.comparison" />
 24				<ref bean="column4.comparison" />
 25				<ref bean="column5.comparison" />
 26				<ref bean="column6.comparison" />
 27				<ref bean="column7.comparison" />
 28            <ref bean="column8.comparison" />
 29            <ref bean="column9.comparison" />
 30			</list>
 31		</constructor-arg>
 32		<constructor-arg index="4">
 33			<list>
 34				<value>1</value>
 35				<value>2</value>
 36				<value>3</value>
 37				<value>4</value>
 38				<value>5</value>
 39				<value>6</value>
 40				<value>7</value>
 41				<value>8</value>
 42			</list>
 43		</constructor-arg>
 44		<constructor-arg index="5">
 45			<list>
 46				<list>
 47					<value>0</value>
 48				</list>
 49				<list>
 50					<value>0</value>
 51				</list>
 52			</list>
 53		</constructor-arg>
 54		<constructor-arg index="6" value="100" />
 55	</bean>
 56
 57	<bean id="column1.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 58		<constructor-arg index="0" ref="lhs.column1" />
 59		<constructor-arg index="1" ref="rhs.column1" />
 60		<constructor-arg index="2" ref="equalsDiffor" />
 61	</bean>
 62
 63	<bean id="column2.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 64		<constructor-arg index="0" ref="lhs.column2" />
 65		<constructor-arg index="1" ref="rhs.column2" />
 66		<constructor-arg index="2" ref="equalsDiffor" />
 67	</bean>
 68
 69	<bean id="column3.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 70		<constructor-arg index="0" ref="lhs.column3" />
 71		<constructor-arg index="1" ref="rhs.column3" />
 72		<constructor-arg index="2" ref="equalsDiffor" />
 73	</bean>
 74
 75	<bean id="column4.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 76		<constructor-arg index="0" ref="lhs.column4" />
 77		<constructor-arg index="1" ref="rhs.column4" />
 78		<constructor-arg index="2" ref="equalsDiffor" />
 79	</bean>
 80
 81	<bean id="column5.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 82		<constructor-arg index="0" ref="lhs.column5" />
 83		<constructor-arg index="1" ref="rhs.column5" />
 84		<constructor-arg index="2" ref="equalsDiffor" />
 85	</bean>
 86
 87	<bean id="column6.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 88		<constructor-arg index="0" ref="lhs.column6" />
 89		<constructor-arg index="1" ref="rhs.column6" />
 90		<constructor-arg index="2" ref="equalsDiffor" />
 91	</bean>
 92
 93	<bean id="column7.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 94		<constructor-arg index="0" ref="lhs.column7" />
 95		<constructor-arg index="1" ref="rhs.column7" />
 96		<constructor-arg index="2" ref="equalsDiffor" />
 97	</bean>
 98
 99   <bean id="column8.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
100      <constructor-arg index="0" ref="lhs.column8" />
101      <constructor-arg index="1" ref="rhs.column8" />
102      <constructor-arg index="2" ref="equalsDiffor" />
103   </bean>
104   
105   <bean id="column9.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
106      <constructor-arg index="0" ref="lhs.column9" />
107      <constructor-arg index="1" ref="rhs.column9" />
108      <constructor-arg index="2" ref="equalsDiffor" />
109   </bean>
110
111	<bean id="equalsDiffor" class="org.diffkit.diff.diffor.DKEqualsDiffor"
112		factory-method="getInstance" />
113
114	<bean id="sink" class="org.diffkit.diff.sns.DKFileSink">
115		<constructor-arg index="0" value="./test31.sink.diff" />
116	</bean>
117
118	<bean id="rhs.source" class="org.diffkit.diff.sns.DKSpreadSheetFileSource">
119		<constructor-arg index="0" value="./test31.rhs.xls" />
120		<constructor-arg index="1" value="Sheet1" />
121		<constructor-arg index="2" ref="rhs.table.model" />
122		<constructor-arg index="3">
123			<null />
124		</constructor-arg>
125		<constructor-arg index="4">
126			<null />
127		</constructor-arg>
128		<constructor-arg index="5" value="true" />
129		<constructor-arg index="6" value="true" />
130		<constructor-arg index="7" value="true" />
131	</bean>
132
133	<bean id="lhs.source" class="org.diffkit.diff.sns.DKSpreadSheetFileSource">
134		<constructor-arg index="0" value="./test31.lhs.xls" />
135		<constructor-arg index="1" value="Sheet1" />
136		<constructor-arg index="2" ref="lhs.table.model" />
137		<constructor-arg index="3">
138			<null />
139		</constructor-arg>
140		<constructor-arg index="4">
141			<null />
142		</constructor-arg>
143		<constructor-arg index="5" value="true" />
144		<constructor-arg index="6" value="true" />
145		<constructor-arg index="7" value="true" />
146	</bean>
147
148	<bean id="rhs.table.model" class="org.diffkit.diff.engine.DKTableModel">
149		<constructor-arg index="0" value="TEST31_RHS_TABLE" />
150		<constructor-arg index="1">
151			<list>
152				<ref bean="rhs.column1" />
153				<ref bean="rhs.column2" />
154				<ref bean="rhs.column3" />
155				<ref bean="rhs.column4" />
156				<ref bean="rhs.column5" />
157				<ref bean="rhs.column6" />
158				<ref bean="rhs.column7" />
159            <ref bean="rhs.column8" />
160            <ref bean="rhs.column9" />
161			</list>
162		</constructor-arg>
163		<constructor-arg index="2">
164			<list>
165				<value>0</value>
166			</list>
167		</constructor-arg>
168	</bean>
169
170	<bean id="lhs.table.model" class="org.diffkit.diff.engine.DKTableModel">
171		<constructor-arg index="0" value="TEST31_LHS_TABLE" />
172		<constructor-arg index="1">
173			<list>
174				<ref bean="lhs.column1" />
175				<ref bean="lhs.column2" />
176				<ref bean="lhs.column3" />
177				<ref bean="lhs.column4" />
178				<ref bean="lhs.column5" />
179				<ref bean="lhs.column6" />
180				<ref bean="lhs.column7" />
181            <ref bean="lhs.column8" />
182            <ref bean="lhs.column9" />
183			</list>
184		</constructor-arg>
185		<constructor-arg index="2">
186			<list>
187				<value>0</value>
188			</list>
189		</constructor-arg>
190	</bean>
191
192
193	<bean id="rhs.column1" class="org.diffkit.diff.engine.DKColumnModel">
194		<constructor-arg index="0" value="0" />
195		<constructor-arg index="1" value="&lt;ROW_NUM&gt;" />
196		<constructor-arg index="2" value="INTEGER" />
197	</bean>
198
199	<bean id="rhs.column2" class="org.diffkit.diff.engine.DKColumnModel">
200		<constructor-arg index="0" value="1" />
201		<constructor-arg index="1" value="COLUMN1" />
202		<constructor-arg index="2" value="INTEGER" />
203	</bean>
204
205	<bean id="rhs.column3" class="org.diffkit.diff.engine.DKColumnModel">
206		<constructor-arg index="0" value="2" />
207		<constructor-arg index="1" value="COLUMN2" />
208		<constructor-arg index="2" value="STRING" />
209	</bean>
210
211	<bean id="rhs.column4" class="org.diffkit.diff.engine.DKColumnModel">
212		<constructor-arg index="0" value="3" />
213		<constructor-arg index="1" value="COLUMN3" />
214		<constructor-arg index="2" value="DECIMAL" />
215	</bean>
216
217	<bean id="rhs.column5" class="org.diffkit.diff.engine.DKColumnModel">
218		<constructor-arg index="0" value="4" />
219		<constructor-arg index="1" value="COLUMN4" />
220		<constructor-arg index="2" value="DECIMAL" />
221	</bean>
222
223	<bean id="rhs.column6" class="org.diffkit.diff.engine.DKColumnModel">
224		<constructor-arg index="0" value="5" />
225		<constructor-arg index="1" value="COLUMN5" />
226		<constructor-arg index="2" value="MIXED" />
227	</bean>
228
229	<bean id="rhs.column7" class="org.diffkit.diff.engine.DKColumnModel">
230		<constructor-arg index="0" value="6" />
231		<constructor-arg index="1" value="COLUMN6" />
232		<constructor-arg index="2" value="MIXED" />
233	</bean>
234
235	<bean id="rhs.column8" class="org.diffkit.diff.engine.DKColumnModel">
236		<constructor-arg index="0" value="7" />
237		<constructor-arg index="1" value="COLUMN7" />
238		<constructor-arg index="2" value="REAL" />
239	</bean>
240
241	<bean id="rhs.column9" class="org.diffkit.diff.engine.DKColumnModel">
242		<constructor-arg index="0" value="8" />
243		<constructor-arg index="1" value="COLUMN8" />
244		<constructor-arg index="2" value="STRING" />
245	</bean>
246
247	<bean id="lhs.column1" class="org.diffkit.diff.engine.DKColumnModel">
248		<constructor-arg index="0" value="0" />
249		<constructor-arg index="1" value="&lt;ROW_NUM&gt;" />
250		<constructor-arg index="2" value="INTEGER" />
251	</bean>
252
253	<bean id="lhs.column2" class="org.diffkit.diff.engine.DKColumnModel">
254		<constructor-arg index="0" value="1" />
255		<constructor-arg index="1" value="COLUMN1" />
256		<constructor-arg index="2" value="INTEGER" />
257	</bean>
258
259	<bean id="lhs.column3" class="org.diffkit.diff.engine.DKColumnModel">
260		<constructor-arg index="0" value="2" />
261		<constructor-arg index="1" value="COLUMN2" />
262		<constructor-arg index="2" value="STRING" />
263	</bean>
264
265	<bean id="lhs.column4" class="org.diffkit.diff.engine.DKColumnModel">
266		<constructor-arg index="0" value="3" />
267		<constructor-arg index="1" value="COLUMN3" />
268		<constructor-arg index="2" value="DECIMAL" />
269	</bean>
270
271	<bean id="lhs.column5" class="org.diffkit.diff.engine.DKColumnModel">
272		<constructor-arg index="0" value="4" />
273		<constructor-arg index="1" value="COLUMN4" />
274		<constructor-arg index="2" value="DECIMAL" />
275	</bean>
276
277	<bean id="lhs.column6" class="org.diffkit.diff.engine.DKColumnModel">
278		<constructor-arg index="0" value="5" />
279		<constructor-arg index="1" value="COLUMN5" />
280		<constructor-arg index="2" value="MIXED" />
281	</bean>
282
283	<bean id="lhs.column7" class="org.diffkit.diff.engine.DKColumnModel">
284		<constructor-arg index="0" value="6" />
285		<constructor-arg index="1" value="COLUMN6" />
286		<constructor-arg index="2" value="MIXED" />
287	</bean>
288
289	<bean id="lhs.column8" class="org.diffkit.diff.engine.DKColumnModel">
290		<constructor-arg index="0" value="7" />
291		<constructor-arg index="1" value="COLUMN7" />
292		<constructor-arg index="2" value="REAL" />
293	</bean>
294
295	<bean id="lhs.column9" class="org.diffkit.diff.engine.DKColumnModel">
296		<constructor-arg index="0" value="8" />
297		<constructor-arg index="1" value="COLUMN8" />
298		<constructor-arg index="2" value="STRING" />
299	</bean>
300
301</beans>