INT-1604 removed OutboundTweetMessageMapper and AbstractOutboundTwitterEndpointSupport, renamed TimelineSendingMessageHandler to StatusUpdatingMessageHandler

This commit is contained in:
Mark Fisher
2010-11-11 18:54:20 -05:00
parent e02582f079
commit ae619d95bf
8 changed files with 41 additions and 137 deletions

View File

@@ -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
}
}

View File

@@ -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")