INT-1652 added documentation for default naming convention for XMPP

This commit is contained in:
Oleg Zhurakousky
2010-11-30 18:28:40 -05:00
parent 99c6c1b3df
commit 41d64cdf6b
2 changed files with 17 additions and 5 deletions

View File

@@ -83,12 +83,8 @@ public class ChatMessageOutboundChannelAdapterParserTests {
MessageChannel channel = context.getBean("outboundEventChannel", MessageChannel.class);
Message<?> message = MessageBuilder.withPayload("hello").setHeader(XmppHeaders.CHAT_TO, "oleg").build();
XMPPConnection connection = context.getBean("testConnection", XMPPConnection.class);
ChatManager chatManager = mock(ChatManager.class);
when(connection.getChatManager()).thenReturn(chatManager);
Chat chat = mock(Chat.class);
when(chatManager.createChat(Mockito.anyString(), Mockito.any(MessageListener.class))).thenReturn(chat);
channel.send(message);
//verify(chat, times(1)).sendMessage("hello");
verify(connection, times(1)).sendPacket(Mockito.any(org.jivesoftware.smack.packet.Message.class));
}
}