Changes to make 'mvn clean test' succeed, add .springBean configuration where missing.

This commit is contained in:
Rossen Stoyanchev
2010-12-17 11:56:25 +00:00
parent f1357b0cf3
commit 434a9e678d
59 changed files with 363 additions and 51 deletions

View File

@@ -2,7 +2,7 @@ package org.springframework.integration.samples.helloworld;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class DelayerTest {
public class DelayerApp {
/**
* @param args

View File

@@ -17,7 +17,6 @@
package org.springframework.integration.samples.helloworld;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.integration.MessageChannel;
@@ -38,13 +37,12 @@ import org.springframework.integration.message.GenericMessage;
* @author Mark Fisher
* @author Oleg Zhurakousky
*/
public class HelloWorldDemoTest {
public class HelloWorldApp {
private static Logger logger = Logger.getLogger(HelloWorldDemoTest.class);
private static Logger logger = Logger.getLogger(HelloWorldApp.class);
@Test
public void testHelloWorld(){
AbstractApplicationContext context = new ClassPathXmlApplicationContext("/META-INF/spring/integration/helloWorldDemo.xml", HelloWorldDemoTest.class);
public static void main(String[] args) {
AbstractApplicationContext context = new ClassPathXmlApplicationContext("/META-INF/spring/integration/helloWorldDemo.xml", HelloWorldApp.class);
MessageChannel inputChannel = context.getBean("inputChannel", MessageChannel.class);
PollableChannel outputChannel = context.getBean("outputChannel", PollableChannel.class);
inputChannel.send(new GenericMessage<String>("World"));