Changes to make 'mvn clean test' succeed, add .springBean configuration where missing.
This commit is contained in:
@@ -2,7 +2,7 @@ package org.springframework.integration.samples.helloworld;
|
||||
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
public class DelayerTest {
|
||||
public class DelayerApp {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
@@ -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"));
|
||||
Reference in New Issue
Block a user