PageRenderTime 28ms CodeModel.GetById 19ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://diffkit.googlecode.com/
XML | 174 lines | 154 code | 20 blank | 0 comment | 0 complexity | 39794e15b67fea4bbb50543b8735cf6e 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="100" />
 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="./test1.sink.diff" />
 68	</bean>
 69
 70	<bean id="rhs.source" class="org.diffkit.diff.sns.DKDBSource">
 71		<constructor-arg index="0" value="TEST1_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="TEST1_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="TEST1_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				<value>2</value>
113			</list>
114		</constructor-arg>
115	</bean>
116
117	<bean id="lhs.table.model" class="org.diffkit.diff.engine.DKTableModel">
118      <constructor-arg index="0" value="TEST1_LHS_TABLE" />
119		<constructor-arg index="1">
120			<list>
121				<ref bean="lhs.column1" />
122				<ref bean="lhs.column2" />
123				<ref bean="lhs.column3" />
124			</list>
125		</constructor-arg>
126		<constructor-arg index="2">
127			<list>
128				<value>0</value>
129				<value>2</value>
130			</list>
131		</constructor-arg>
132	</bean>
133
134	<bean id="rhs.column1" class="org.diffkit.diff.engine.DKColumnModel">
135		<constructor-arg index="0" value="0" />
136		<constructor-arg index="1" value="COLUMN1" />
137		<constructor-arg index="2" value="STRING" />
138	</bean>
139
140	<bean id="rhs.column2" class="org.diffkit.diff.engine.DKColumnModel">
141		<constructor-arg index="0" value="1" />
142		<constructor-arg index="1" value="COLUMN2" />
143		<constructor-arg index="2" value="STRING" />
144	</bean>
145
146	<bean id="rhs.column3" class="org.diffkit.diff.engine.DKColumnModel">
147		<constructor-arg index="0" value="2" />
148		<constructor-arg index="1" value="COLUMN3" />
149		<constructor-arg index="2" value="INTEGER" />
150	</bean>
151
152	<bean id="lhs.column1" class="org.diffkit.diff.engine.DKColumnModel">
153		<constructor-arg index="0" value="0" />
154		<constructor-arg index="1" value="COLUMN1" />
155		<constructor-arg index="2" value="STRING" />
156	</bean>
157
158	<bean id="lhs.column2" class="org.diffkit.diff.engine.DKColumnModel">
159		<constructor-arg index="0" value="1" />
160		<constructor-arg index="1" value="COLUMN2" />
161		<constructor-arg index="2" value="STRING" />
162	</bean>
163
164	<bean id="lhs.column3" class="org.diffkit.diff.engine.DKColumnModel">
165		<constructor-arg index="0" value="2" />
166		<constructor-arg index="1" value="COLUMN3" />
167		<constructor-arg index="2" value="INTEGER" />
168	</bean>
169
170	<bean id="connectionSource" class="org.diffkit.db.DKDatabase">
171		<constructor-arg ref="connectionInfo" />
172	</bean>
173
174</beans>