INT-1848 Add order Attribute (twitter)

This commit is contained in:
Gary Russell
2011-04-30 11:06:24 -04:00
parent 832b3433ee
commit 5f180de201
3 changed files with 12 additions and 2 deletions

View File

@@ -24,7 +24,7 @@
<channel id="inputChannel"/>
<twitter:dm-outbound-channel-adapter id="dmAdapter"
<twitter:dm-outbound-channel-adapter id="dmAdapter" order="23"
twitter-template="twitter"
channel="inputChannel"/>

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2010 the original author or authors.
* Copyright 2002-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@ import org.springframework.integration.twitter.outbound.DirectMessageSendingMess
/**
* @author Oleg Zhurakousky
* @author Gary Russell
* @since 2.0
*/
public class TestSendingMessageHandlerParserTests {
@@ -38,6 +39,7 @@ public class TestSendingMessageHandlerParserTests {
EventDrivenConsumer dmAdapter = ac.getBean("dmAdapter", EventDrivenConsumer.class);
Object handler = TestUtils.getPropertyValue(dmAdapter, "handler");
assertEquals(DirectMessageSendingMessageHandler.class, handler.getClass());
assertEquals(23, TestUtils.getPropertyValue(handler, "order"));
}
}