INT-1603 added real test in the 'ignored' for search with namespace

This commit is contained in:
Oleg Zhurakousky
2010-11-11 16:11:57 -05:00
parent ff0d81e36b
commit d1a97304a9
3 changed files with 11 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
<channel id="inbound_dm"/>
<channel id="inbound_mentions"/>
<channel id="inbound_updates"/>
<channel id="inbound_search"/>
<beans:bean id="twitterTemplate" class="org.springframework.integration.twitter.core.Twitter4jTemplate">
<beans:constructor-arg value="${twitter.oauth.consumerKey}"/>
@@ -42,6 +43,11 @@
<poller fixed-rate="5000" max-messages-per-poll="3"/>
</twitter:dm-inbound-channel-adapter>
<service-activator input-channel="inbound_dm" ref="twitterAnnouncer" method="dm"/>
<twitter:search-inbound-channel-adapter channel="inbound_search" query="#springintegration">
<poller fixed-rate="5000" max-messages-per-poll="5"/>
</twitter:search-inbound-channel-adapter>
<service-activator input-channel="inbound_search" ref="twitterAnnouncer" method="search"/>
<twitter:inbound-channel-adapter id="twitterInbound" twitter-template="twitterTemplate" channel="inbound_updates">
<poller fixed-rate="5000" max-messages-per-poll="3"/>

View File

@@ -25,6 +25,11 @@ public class TwitterAnnouncer {
System.out.println("A direct message has been received from " +
directMessage.getFromUser() + " with text " + directMessage.getText());
}
public void search(Tweet search) {
System.out.println("A search item was received " +
search.getCreatedAt() + " with text " + search.getText());
}
public void mention(Tweet s) {
System.out.println("A tweet mentioning (or replying) to " + "you was received having text " + s.getFromUser() + "-" + s.getText() + " from " + s.getSource());