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

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

http://diffkit.googlecode.com/
XML | 169 lines | 150 code | 19 blank | 0 comment | 0 complexity | bb47b95adc0c4ea4c06bd15b03f10da5 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="ROW_DIFF" />
 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         </list>
 30      </constructor-arg>
 31      <constructor-arg index="5">
 32         <list>
 33            <list>
 34               <value>0</value>
 35               <value>2</value>
 36            </list>
 37            <list>
 38               <value>0</value>
 39               <value>2</value>
 40            </list>
 41         </list>
 42      </constructor-arg>
 43      <constructor-arg index="6" value="100" />
 44   </bean>
 45
 46   <bean id="column1.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 47      <constructor-arg index="0" ref="lhs.column1" />
 48      <constructor-arg index="1" ref="rhs.column1" />
 49      <constructor-arg index="2" ref="equalsDiffor" />
 50   </bean>
 51
 52   <bean id="column2.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 53      <constructor-arg index="0" ref="lhs.column2" />
 54      <constructor-arg index="1" ref="rhs.column2" />
 55      <constructor-arg index="2" ref="equalsDiffor" />
 56   </bean>
 57
 58   <bean id="column3.comparison" class="org.diffkit.diff.engine.DKColumnComparison">
 59      <constructor-arg index="0" ref="lhs.column3" />
 60      <constructor-arg index="1" ref="rhs.column3" />
 61      <constructor-arg index="2" ref="equalsDiffor" />
 62   </bean>
 63
 64   <bean id="equalsDiffor" class="org.diffkit.diff.diffor.DKEqualsDiffor"
 65      factory-method="getInstance" />
 66
 67   <bean id="sink" class="org.diffkit.diff.sns.DKFileSink">
 68      <constructor-arg index="0" value="./test5.sink.diff" />
 69   </bean>
 70
 71   <bean id="rhs.source" class="org.diffkit.diff.sns.DKFileSource">
 72      <constructor-arg index="0" value="./test5.rhs.csv" />
 73      <constructor-arg index="1" ref="lhs.table.model" />
 74      <constructor-arg index="2">
 75         <null />
 76      </constructor-arg>
 77      <constructor-arg index="3">
 78         <null />
 79      </constructor-arg>
 80      <constructor-arg index="4" value="\," />
 81      <constructor-arg index="5" value="true" />
 82      <constructor-arg index="6" value="true" />
 83   </bean>
 84
 85   <bean id="lhs.source" class="org.diffkit.diff.sns.DKFileSource">
 86      <constructor-arg index="0" value="./test5.lhs.csv" />
 87      <constructor-arg index="1" ref="lhs.table.model" />
 88      <constructor-arg index="2">
 89         <null />
 90      </constructor-arg>
 91      <constructor-arg index="3">
 92         <null />
 93      </constructor-arg>
 94      <constructor-arg index="4" value="\," />
 95      <constructor-arg index="5" value="true" />
 96      <constructor-arg index="6" value="true" />
 97   </bean>
 98
 99   <bean id="rhs.table.model" class="org.diffkit.diff.engine.DKTableModel">
100      <constructor-arg index="0" value="TEST5_RHS_TABLE" />
101      <constructor-arg index="1">
102         <list>
103            <ref bean="rhs.column1" />
104            <ref bean="rhs.column2" />
105            <ref bean="rhs.column3" />
106         </list>
107      </constructor-arg>
108      <constructor-arg index="2">
109         <list>
110            <value>0</value>
111            <value>2</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="TEST5_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            <value>2</value>
129         </list>
130      </constructor-arg>
131   </bean>
132
133   <bean id="rhs.column1" class="org.diffkit.diff.engine.DKColumnModel">
134      <constructor-arg index="0" value="0" />
135      <constructor-arg index="1" value="column1" />
136      <constructor-arg index="2" value="STRING" />
137   </bean>
138
139   <bean id="rhs.column2" class="org.diffkit.diff.engine.DKColumnModel">
140      <constructor-arg index="0" value="1" />
141      <constructor-arg index="1" value="column2" />
142      <constructor-arg index="2" value="STRING" />
143   </bean>
144
145   <bean id="rhs.column3" class="org.diffkit.diff.engine.DKColumnModel">
146      <constructor-arg index="0" value="2" />
147      <constructor-arg index="1" value="column3" />
148      <constructor-arg index="2" value="INTEGER" />
149   </bean>
150
151   <bean id="lhs.column1" class="org.diffkit.diff.engine.DKColumnModel">
152      <constructor-arg index="0" value="0" />
153      <constructor-arg index="1" value="column1" />
154      <constructor-arg index="2" value="STRING" />
155   </bean>
156
157   <bean id="lhs.column2" class="org.diffkit.diff.engine.DKColumnModel">
158      <constructor-arg index="0" value="1" />
159      <constructor-arg index="1" value="column2" />
160      <constructor-arg index="2" value="STRING" />
161   </bean>
162
163   <bean id="lhs.column3" class="org.diffkit.diff.engine.DKColumnModel">
164      <constructor-arg index="0" value="2" />
165      <constructor-arg index="1" value="column3" />
166      <constructor-arg index="2" value="INTEGER" />
167   </bean>
168
169</beans>