File Cleanup - Scripting to Twitter
This commit is contained in:
@@ -20,32 +20,32 @@
|
||||
<beans:bean id="twitter" class="org.mockito.Mockito" factory-method="mock">
|
||||
<beans:constructor-arg value="org.springframework.social.twitter.api.Twitter"/>
|
||||
</beans:bean>
|
||||
|
||||
|
||||
<channel id="inbound_mentions"/>
|
||||
|
||||
<twitter:mentions-inbound-channel-adapter id="mentionAdapter"
|
||||
twitter-template="twitter"
|
||||
channel="inbound_mentions"
|
||||
page-size="23"
|
||||
auto-startup="false">
|
||||
<poller fixed-rate="5000" max-messages-per-poll="3"/>
|
||||
</twitter:mentions-inbound-channel-adapter>
|
||||
|
||||
<twitter:dm-inbound-channel-adapter id="dmAdapter"
|
||||
twitter-template="twitter"
|
||||
channel="inbound_mentions"
|
||||
page-size="45"
|
||||
auto-startup="false">
|
||||
<poller fixed-rate="5000" max-messages-per-poll="3"/>
|
||||
</twitter:dm-inbound-channel-adapter>
|
||||
<twitter:inbound-channel-adapter id="updateAdapter"
|
||||
twitter-template="twitter"
|
||||
channel="inbound_mentions"
|
||||
page-size="67"
|
||||
auto-startup="false">
|
||||
<poller fixed-rate="5000" max-messages-per-poll="3"/>
|
||||
</twitter:inbound-channel-adapter>
|
||||
|
||||
|
||||
<twitter:mentions-inbound-channel-adapter id="mentionAdapter"
|
||||
twitter-template="twitter"
|
||||
channel="inbound_mentions"
|
||||
page-size="23"
|
||||
auto-startup="false">
|
||||
<poller fixed-rate="5000" max-messages-per-poll="3"/>
|
||||
</twitter:mentions-inbound-channel-adapter>
|
||||
|
||||
<twitter:dm-inbound-channel-adapter id="dmAdapter"
|
||||
twitter-template="twitter"
|
||||
channel="inbound_mentions"
|
||||
page-size="45"
|
||||
auto-startup="false">
|
||||
<poller fixed-rate="5000" max-messages-per-poll="3"/>
|
||||
</twitter:dm-inbound-channel-adapter>
|
||||
<twitter:inbound-channel-adapter id="updateAdapter"
|
||||
twitter-template="twitter"
|
||||
channel="inbound_mentions"
|
||||
page-size="67"
|
||||
auto-startup="false">
|
||||
<poller fixed-rate="5000" max-messages-per-poll="3"/>
|
||||
</twitter:inbound-channel-adapter>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<channel id="inbound_mentions"/>
|
||||
|
||||
<channel id="inputChannel"/>
|
||||
<channel id="inputChannel"/>
|
||||
|
||||
<twitter:dm-outbound-channel-adapter id="dmAdapter" order="23"
|
||||
twitter-template="twitter"
|
||||
|
||||
@@ -68,7 +68,8 @@ public class TestSendingMessageHandlerParserTests {
|
||||
@Test
|
||||
public void testInt2718FailForOutboundAdapterWithRequestHandlerAdviceChainWithinChainConfig() {
|
||||
try {
|
||||
new ClassPathXmlApplicationContext("OutboundAdapterWithRHACWithinChain-fail-context.xml", this.getClass());
|
||||
new ClassPathXmlApplicationContext("OutboundAdapterWithRHACWithinChain-fail-context.xml", this.getClass())
|
||||
.close();
|
||||
fail("Expected BeanDefinitionParsingException");
|
||||
}
|
||||
catch (BeansException e) {
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang.xsd
|
||||
http://www.springframework.org/schema/integration/twitter http://www.springframework.org/schema/integration/twitter/spring-integration-twitter.xsd">
|
||||
|
||||
<context:property-placeholder
|
||||
<context:property-placeholder
|
||||
location="classpath:twitter.receiver.properties"
|
||||
ignore-unresolvable="true"/>
|
||||
|
||||
|
||||
<beans:bean id="twitterTemplate" class="org.springframework.social.twitter.api.impl.TwitterTemplate">
|
||||
<beans:constructor-arg value="${twitter.oauth.consumerKey}"/>
|
||||
<beans:constructor-arg value="${twitter.oauth.consumerSecret}"/>
|
||||
|
||||
@@ -2,4 +2,4 @@ twitter.oauth.consumerKey=
|
||||
twitter.oauth.consumerSecret=
|
||||
twitter.oauth.accessToken=
|
||||
twitter.oauth.accessTokenSecret=
|
||||
twitter.oauth.pin=
|
||||
twitter.oauth.pin=
|
||||
|
||||
Reference in New Issue
Block a user