INT-1604 removed OutboundTweetMessageMapper and AbstractOutboundTwitterEndpointSupport, renamed TimelineSendingMessageHandler to StatusUpdatingMessageHandler
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.twitter.config;
|
||||
|
||||
import org.junit.Test;
|
||||
@@ -20,13 +21,14 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
*
|
||||
* @since 2.0
|
||||
*/
|
||||
public class TestSendingMessageHandlerParserTests {
|
||||
|
||||
@Test
|
||||
public void testSendingMessageHandlerSuccessfullBootstrap(){
|
||||
public void testSendingMessageHandlerSuccessfulBootstrap(){
|
||||
new ClassPathXmlApplicationContext("TestSendingMessageHandlerParser-context.xml", this.getClass());
|
||||
// the fact that no exception was thrown satisfies this test
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class TimelineUpdateSendingMessageHandlerTests {
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
@Test
|
||||
public void testSendingStatusUpdate() throws Exception{
|
||||
TimelineSendingMessageHandler handler = new TimelineSendingMessageHandler(twitterOperations);
|
||||
StatusUpdatingMessageHandler handler = new StatusUpdatingMessageHandler(twitterOperations);
|
||||
Tweet tweet = new Tweet();
|
||||
tweet.setText("writing twitter tests");
|
||||
handler.handleMessage(new GenericMessage(tweet));
|
||||
@@ -67,7 +67,7 @@ public class TimelineUpdateSendingMessageHandlerTests {
|
||||
}
|
||||
@Test
|
||||
public void testSendingStatusUpdateWithHeaders() throws Exception{
|
||||
TimelineSendingMessageHandler handler = new TimelineSendingMessageHandler(twitterOperations);
|
||||
StatusUpdatingMessageHandler handler = new StatusUpdatingMessageHandler(twitterOperations);
|
||||
Message<?> message = MessageBuilder.withPayload("writing twitter tests")
|
||||
.setHeader(TwitterHeaders.IN_REPLY_TO_STATUS_ID, new Long(123))
|
||||
.setHeader(TwitterHeaders.PLACE_ID, "123")
|
||||
|
||||
Reference in New Issue
Block a user