#510 - Moved Spring Integration module into folder named si.
Polished test case for Spring Integration module.
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -17,7 +17,7 @@
|
||||
<modules>
|
||||
<module>core</module>
|
||||
<module>metadata</module>
|
||||
<module>org.synyx.hera.si</module>
|
||||
<module>si</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
|
||||
29
si/.project
Normal file
29
si/.project
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.synyx.hera.si</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.maven.ide.eclipse.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.springframework.ide.eclipse.core.springbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.springframework.ide.eclipse.core.springnature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
4
si/.settings/com.springsource.sts.config.flow.prefs
Normal file
4
si/.settings/com.springsource.sts.config.flow.prefs
Normal file
@@ -0,0 +1,4 @@
|
||||
#Wed May 25 16:09:30 CEST 2011
|
||||
//com.springsource.sts.config.flow.coordinates\:http\://www.springframework.org/schema/integration\:/org.synyx.hera.si/src/test/resources/dynamic-service-activator-test-context.xml=<?xml version\="1.0" encoding\="UTF-8"?>\n<graph>\n<element clazz\="ChannelModelElement" type\="channel">\n<structure end\="1018" endstart\="1018" start\="984" startend\="1018"/>\n<bounds height\="112" width\="116" x\="19" y\="17"/>\n</element>\n<element clazz\="ChannelModelElement" type\="channel">\n<structure end\="1046" endstart\="1046" start\="1022" startend\="1046"/>\n<bounds height\="112" width\="116" x\="19" y\="149"/>\n</element>\n</graph>
|
||||
//com.springsource.sts.config.flow.coordinates\:http\://www.springframework.org/schema/integration\:/org.synyx.hera.si/src/test/resources/service-activator-test-context.xml=<?xml version\="1.0" encoding\="UTF-8"?>\n<graph>\n<element clazz\="ChannelModelElement" type\="channel">\n<structure end\="626" endstart\="626" start\="592" startend\="626"/>\n<bounds height\="112" width\="116" x\="19" y\="17"/>\n</element>\n<element clazz\="ServiceActivatorModelElement" type\="service-activator">\n<structure end\="785" endstart\="761" start\="629" startend\="756"/>\n<bounds height\="112" width\="116" x\="155" y\="17"/>\n</element>\n</graph>
|
||||
eclipse.preferences.version=1
|
||||
6
si/.settings/org.eclipse.jdt.core.prefs
Normal file
6
si/.settings/org.eclipse.jdt.core.prefs
Normal file
@@ -0,0 +1,6 @@
|
||||
#Wed May 25 12:22:34 CEST 2011
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
||||
8
si/.settings/org.maven.ide.eclipse.prefs
Normal file
8
si/.settings/org.maven.ide.eclipse.prefs
Normal file
@@ -0,0 +1,8 @@
|
||||
#Wed May 25 12:22:34 CEST 2011
|
||||
activeProfiles=
|
||||
eclipse.preferences.version=1
|
||||
fullBuildGoals=process-test-resources
|
||||
resolveWorkspaceProjects=true
|
||||
resourceFilterGoals=process-resources resources\:testResources
|
||||
skipCompilerPlugin=true
|
||||
version=1
|
||||
@@ -12,7 +12,7 @@
|
||||
<name>Hera Spring Integration integration</name>
|
||||
|
||||
<properties>
|
||||
<spring.integration.version>2.0.3.RELEASE</spring.integration.version>
|
||||
<spring.integration.version>2.0.5.RELEASE</spring.integration.version>
|
||||
<spring.version>3.0.5.RELEASE</spring.version>
|
||||
</properties>
|
||||
|
||||
@@ -21,6 +21,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.integration.Message;
|
||||
import org.springframework.integration.MessageChannel;
|
||||
import org.springframework.integration.core.SubscribableChannel;
|
||||
import org.springframework.integration.handler.LoggingHandler;
|
||||
import org.springframework.integration.support.MessageBuilder;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
@@ -38,9 +40,14 @@ public class DynamicServiceActivatorNamespaceIntegrationTest {
|
||||
@Qualifier("sampleChannel")
|
||||
MessageChannel channel;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("foo")
|
||||
SubscribableChannel sink;
|
||||
|
||||
@Test
|
||||
public void invokesPluginBasedOnPayload() {
|
||||
|
||||
sink.subscribe(new LoggingHandler("DEBUG"));
|
||||
Message<String> message = MessageBuilder.withPayload("FOO").build();
|
||||
channel.send(message);
|
||||
}
|
||||
12
si/src/test/resources/log4j.properties
Normal file
12
si/src/test/resources/log4j.properties
Normal file
@@ -0,0 +1,12 @@
|
||||
# Direct log messages to stdout
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target=System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
||||
|
||||
# Root logger option
|
||||
log4j.rootLogger=WARN, stdout
|
||||
|
||||
# Hibernate logging options (INFO only shows startup messages)
|
||||
log4j.logger.org.springframework=INFO
|
||||
log4j.logger.org.synyx.hera=DEBUG
|
||||
@@ -7,6 +7,7 @@ Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
||||
Export-Template:
|
||||
${project.artifactId}.*;version="${project.version}"
|
||||
Import-Template:
|
||||
org.apache.commons.logging.*;version="[1.1.0,2.0.0)",
|
||||
org.synyx.hera.core.*;version="${project.version:[=.=.=.=,+1.0.0)}",
|
||||
org.springframework.*;version="${spring.version:[=.=.=.=,+2.0.0)}",
|
||||
org.springframework.integration.*;version="${spring.integration.version:[=.=.=.=,+1.0.0)}",
|
||||
Reference in New Issue
Block a user