\r
<import resource="imports.xml" /> \r
\r
+ <bean id="myTestResult" class="org.argeo.slc.core.test.SimpleTestResult" />\r
+\r
+ <bean id="myTestDef" class="org.argeo.slc.core.test.BasicTestDefinition" />\r
+\r
+ <bean id="myTestRunTemplate" class="org.argeo.slc.core.test.SimpleTestRun" abstract="true">\r
+ <property name="testDefinition" ref="myTestDef" />\r
+ <property name="testResult" ref="myTestResult"/>\r
+ </bean> \r
+\r
<bean id="fileDiff.spec" parent="slcTemplate.simpleSpec">\r
<property name="attributes">\r
<map>\r
<bean parent="task.echo">\r
<property name="message" value="fileName=@{fileName}" />\r
</bean>\r
+ <bean parent="myTestRunTemplate">\r
+ <property name="testData">\r
+ <bean class="org.argeo.slc.core.test.BasicTestData">\r
+ <property name="expected" value="file1" />\r
+ <property name="reached" value="@{fileName}" />\r
+ </bean>\r
+ </property> \r
+ </bean>\r
</list>\r
</property>\r
</bean>\r
\r
- <bean id="echo" parent="task.echo" scope="execution">\r
+ <bean id="echo" parent="task.echo" scope="prototype">\r
<property name="message" value="fileName=@{fileName}" />\r
- <aop:scoped-proxy />\r
</bean> \r
\r
- <bean id="flow1" parent="fileDiff.flowTemplate" scope="prototype">\r
+ <bean id="flow1" parent="fileDiff.flowTemplate">\r
<constructor-arg>\r
<map>\r
<entry key="fileName" value="file1" />\r
</constructor-arg>\r
</bean> \r
\r
- <bean id="flow2" parent="fileDiff.flowTemplate" scope="prototype">\r
+ <bean id="flow2" parent="fileDiff.flowTemplate">\r
<constructor-arg>\r
<map>\r
<entry key="fileName" value="file2" />\r