INT-1727 polishing
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
<xsd:attribute name="script-variable-generator" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Reference to the ScriptVariableSource bean. This attribute is mutually
|
||||
Reference to the ScriptVariableGenerator bean. This attribute is mutually
|
||||
exclusive with 'variable' sub-element
|
||||
</xsd:documentation>
|
||||
<xsd:appinfo>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</service-activator>
|
||||
|
||||
|
||||
<service-activator input-channel="withScriptVariableSource">
|
||||
<service-activator input-channel="withScriptVariableGenerator">
|
||||
<groovy:script location="org/springframework/integration/groovy/config/GroovyServiceActivatorTests.groovy"
|
||||
script-variable-generator="scriptVarSource"/>
|
||||
</service-activator>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<service-activator input-channel="withScriptVariableSource">
|
||||
<service-activator input-channel="withScriptVariableGenerator">
|
||||
<groovy:script location="org/springframework/integration/groovy/config/GroovyServiceActivatorTests.groovy"
|
||||
script-variable-generator="scriptVarSource">
|
||||
<groovy:variable name="foo" value="foo"/>
|
||||
|
||||
@@ -54,7 +54,7 @@ public class GroovyServiceActivatorTests {
|
||||
private MessageChannel inlineScriptInput;
|
||||
|
||||
@Autowired
|
||||
private MessageChannel withScriptVariableSource;
|
||||
private MessageChannel withScriptVariableGenerator;
|
||||
|
||||
|
||||
@Test
|
||||
@@ -87,7 +87,7 @@ public class GroovyServiceActivatorTests {
|
||||
replyChannel.setBeanName("returnAddress");
|
||||
for (int i = 1; i <= 3; i++) {
|
||||
Message<?> message = MessageBuilder.withPayload("test-" + i).setReplyChannel(replyChannel).build();
|
||||
this.withScriptVariableSource.send(message);
|
||||
this.withScriptVariableGenerator.send(message);
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
String value1 = (String) replyChannel.receive(0).getPayload();
|
||||
@@ -124,7 +124,7 @@ public class GroovyServiceActivatorTests {
|
||||
}
|
||||
|
||||
@Test(expected=BeanDefinitionParsingException.class)
|
||||
public void variablesAndScriptVariableSource() throws Exception{
|
||||
public void variablesAndScriptVariableGenerator() throws Exception{
|
||||
new ClassPathXmlApplicationContext("GroovyServiceActivatorTests-fail-withgenerator-context.xml", this.getClass());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user