Removed the Subscription class.

This commit is contained in:
Mark Fisher
2008-07-04 22:39:18 +00:00
parent 96b22fd01b
commit 71da892bcb
11 changed files with 82 additions and 133 deletions

View File

@@ -30,7 +30,6 @@ import org.springframework.integration.channel.MessageChannel;
import org.springframework.integration.channel.QueueChannel;
import org.springframework.integration.message.GenericMessage;
import org.springframework.integration.message.StringMessage;
import org.springframework.integration.scheduling.Subscription;
/**
* @author Mark Fisher
@@ -50,7 +49,7 @@ public class ApplicationEventTargetTests {
adapter.setApplicationEventPublisher(publisher);
MessageBus bus = new MessageBus();
bus.registerChannel("channel", channel);
bus.registerTarget("adapter", adapter, new Subscription(channel));
bus.registerTarget("adapter", adapter, channel, null);
bus.start();
assertEquals(1, latch.getCount());
channel.send(new StringMessage("123", "testing"));