1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <beans xmlns=
"http://www.springframework.org/schema/beans"
3 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance" xmlns:
p=
"http://www.springframework.org/schema/p"
4 xmlns:
lang=
"http://www.springframework.org/schema/lang"
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
11 resource=
"classpath:/org/argeo/slc/core/test/spring/applicationContext.xml" />
13 <import resource=
"testCases/basic-001.xml" />
14 <import resource=
"testCases/basic-002.xml" />
16 <bean id=
"executionFlow.basic1" class=
"org.argeo.slc.executionflow.SimpleExecutionFlow">
17 <meta key=
"meta1" value=
"mata1Value" />
19 <attribute key=
"qual1" value=
"qual1value" />
21 <property name=
"executables">
23 <ref local=
"testGroovyImpl" />
24 <ref local=
"testBshImpl" />
25 <bean parent=
"testRun" p:
testDefinition-ref=
"testDef"
26 p:
testData-ref=
"testData-${testCase}" />
27 <bean parent=
"testRun" p:
testDefinition-ref=
"testDef"
28 p:
testData-ref=
"testData-${testCase}" />
33 <lang:groovy id=
"executionFlow.groovy1" script-source=
"src/slc/conf/BasicExecutionFlow.groovy">
34 <lang:property name=
"firstSubTest">
35 <bean parent=
"testRun" p:
testDefinition-ref=
"testDef"
36 p:
testData-ref=
"testData-${testCase}" />
40 <bean id=
"testGroovyImpl" parent=
"testGroovy">
41 <property name=
"message" value=
"Hello World! Groovy" />
43 <bean id=
"testBshImpl" parent=
"testBsh">
44 <property name=
"message" value=
"Hello World! Beanshell" />
47 <bean id=
"testDef" class=
"org.argeo.slc.core.test.BasicTestDefinition"
51 class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
53 <bean id=
"testResult" parent=
"slcDefault.test.basicSimpleTestResult">
56 <bean id=
"testRun" class=
"org.argeo.slc.core.test.SimpleTestRun"
58 <property name=
"testResult" ref=
"testResult" />
61 <lang:groovy id=
"testGroovyBean">
62 <lang:inline-script><![CDATA[
64 String message = 'test'
66 public String getMessage(){
70 ]]
></lang:inline-script>
73 <lang:groovy id=
"testGroovy">
74 <lang:inline-script><![CDATA[
75 class GroovyMessenger extends org.argeo.slc.core.test.SimpleTestRun {
77 String message = 'test'
83 ]]
></lang:inline-script>
86 <lang:bsh id=
"testBsh" script-interfaces=
"org.argeo.slc.test.ExecutableTestRun">
87 <lang:inline-script><![CDATA[
90 class BshMessenger extends org.argeo.slc.core.test.SimpleTestRun {
92 String message =
"test";
94 public void execute(){
95 System.out.println(message);
98 public void setMessage(String message){
99 this.message = message;
102 ]]
></lang:inline-script>