PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

/tst/org/diffkit/diff/conf/tst/testtool.xml

http://diffkit.googlecode.com/
XML | 187 lines | 166 code | 21 blank | 0 comment | 0 complexity | d187c5065ed0fb0127462b5495aa3fb8 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			</list>
 25		</constructor-arg>
 26		<constructor-arg index="4">
 27			<list>
 28				<value>1</value>
 29				<value>2</value>
 30			</list>
 31		</constructor-arg>
 32		<constructor-arg index="5">
 33			<list>
 34				<list>
 35					<value>0</value>
 36				</list>
 37				<list>
 38					<value>0</value>
 39				</list>
 40			</list>
 41		</constructor-arg>
 42		<constructor-arg index="6" value="-1" />
 43	</bean>
 44
 45	<bean id="column1.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 46		<constructor-arg index="0" ref="lhs.column1" />
 47		<constructor-arg index="1" ref="rhs.column1" />
 48		<constructor-arg index="2" ref="equalsDiffor" />
 49	</bean>
 50
 51	<bean id="column2.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 52		<constructor-arg index="0" ref="lhs.column2" />
 53		<constructor-arg index="1" ref="rhs.column2" />
 54		<constructor-arg index="2" ref="equalsDiffor" />
 55	</bean>
 56
 57	<bean id="column3.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 58		<constructor-arg index="0" ref="lhs.column3" />
 59		<constructor-arg index="1" ref="rhs.column3" />
 60		<constructor-arg index="2" ref="equalsDiffor" />
 61	</bean>
 62
 63	<bean id="equalsDiffor" class="org.diffkit.diff.diffor.DKEqualsDiffor"
 64		factory-method="getInstance" />
 65
 66	<bean id="sink" class="org.diffkit.diff.sns.DKFileSink">
 67		<constructor-arg index="0" value="./testtool.testplan.sink.diff" />
 68	</bean>
 69
 70	<bean id="rhs.source" class="org.diffkit.diff.sns.DKDBSource">
 71		<constructor-arg index="0" value="RHS_TABLE" />
 72		<constructor-arg index="1">
 73			<null />
 74		</constructor-arg>
 75		<constructor-arg index="2" ref="connectionSource" />
 76		<constructor-arg index="3" ref="rhs.table.model" />
 77		<constructor-arg index="4">
 78			<null />
 79		</constructor-arg>
 80      <constructor-arg index="5">
 81         <null />
 82      </constructor-arg>
 83	</bean>
 84
 85	<bean id="lhs.source" class="org.diffkit.diff.sns.DKDBSource">
 86		<constructor-arg index="0" value="LHS_TABLE" />
 87		<constructor-arg index="1">
 88			<null />
 89		</constructor-arg>
 90		<constructor-arg index="2" ref="connectionSource" />
 91		<constructor-arg index="3" ref="lhs.table.model" />
 92      <constructor-arg index="4">
 93         <null />
 94      </constructor-arg>
 95      <constructor-arg index="5">
 96         <null />
 97      </constructor-arg>
 98	</bean>
 99
100	<bean id="rhs.table.model" class="org.diffkit.diff.engine.DKTableModel">
101      <constructor-arg index="0" value="RHS_TABLE" />
102      <constructor-arg index="1">
103			<list>
104				<ref bean="rhs.column1" />
105				<ref bean="rhs.column2" />
106				<ref bean="rhs.column3" />
107			</list>
108		</constructor-arg>
109		<constructor-arg index="2">
110			<list>
111				<value>0</value>
112			</list>
113		</constructor-arg>
114	</bean>
115
116	<bean id="lhs.table.model" class="org.diffkit.diff.engine.DKTableModel">
117      <constructor-arg index="0" value="LHS_TABLE" />
118		<constructor-arg index="1">
119			<list>
120				<ref bean="lhs.column1" />
121				<ref bean="lhs.column2" />
122				<ref bean="lhs.column3" />
123			</list>
124		</constructor-arg>
125		<constructor-arg index="2">
126			<list>
127				<value>0</value>
128			</list>
129		</constructor-arg>
130	</bean>
131
132	<bean id="rhs.column1" class="org.diffkit.diff.engine.DKColumnModel">
133		<constructor-arg index="0" value="0" />
134		<constructor-arg index="1" value="column1" />
135		<constructor-arg index="2" value="STRING" />
136	</bean>
137
138	<bean id="rhs.column2" class="org.diffkit.diff.engine.DKColumnModel">
139		<constructor-arg index="0" value="1" />
140		<constructor-arg index="1" value="column2" />
141		<constructor-arg index="2" value="STRING" />
142	</bean>
143
144	<bean id="rhs.column3" class="org.diffkit.diff.engine.DKColumnModel">
145		<constructor-arg index="0" value="2" />
146		<constructor-arg index="1" value="column3" />
147		<constructor-arg index="2" value="INTEGER" />
148	</bean>
149
150	<bean id="lhs.column1" class="org.diffkit.diff.engine.DKColumnModel">
151		<constructor-arg index="0" value="0" />
152		<constructor-arg index="1" value="column1" />
153		<constructor-arg index="2" value="STRING" />
154	</bean>
155
156	<bean id="lhs.column2" class="org.diffkit.diff.engine.DKColumnModel">
157		<constructor-arg index="0" value="1" />
158		<constructor-arg index="1" value="column2" />
159		<constructor-arg index="2" value="STRING" />
160	</bean>
161
162	<bean id="lhs.column3" class="org.diffkit.diff.engine.DKColumnModel">
163		<constructor-arg index="0" value="2" />
164		<constructor-arg index="1" value="column3" />
165		<constructor-arg index="2" value="INTEGER" />
166	</bean>
167
168	<bean id="connectionSource" class="org.diffkit.db.DKDatabase">
169		<constructor-arg ref="connectionInfo" />
170	</bean>
171
172   <bean id="connectionInfo" class="org.diffkit.db.DKDBConnectionInfo">
173      <constructor-arg index="0" value="test" />
174      <constructor-arg index="1" value="H2" />
175      <constructor-arg index="2"
176         value="mem:conf.test;DB_CLOSE_DELAY=-1" />
177      <constructor-arg index="3">
178         <null />
179      </constructor-arg>
180      <constructor-arg index="4">
181         <null />
182      </constructor-arg>
183      <constructor-arg index="5" value="test" />
184      <constructor-arg index="6" value="test" />
185   </bean>
186
187</beans>