use of jetbrains.communicator.core.transport.TextXmlMessage in project intellij-plugins by JetBrains.
the class JabberTransport_ConnectionTest method testSendCustomMessage_WithoutProvider.
public void testSendCustomMessage_WithoutProvider() throws Exception {
addEventListener();
myTransport.sendXmlMessage(mySelf, new TextXmlMessage("some text") {
@Override
public String getTagNamespace() {
return "some namespace";
}
});
new WaitFor(TIMEOUT) {
@Override
protected boolean condition() {
return myEvents.size() > 1;
}
};
IDEtalkEvent event = myEvents.get(1);
assertTrue("Expect message Event for unknown provider", event instanceof MessageEvent);
assertEquals("Expect message text", "some text", ((MessageEvent) event).getMessage());
}
Aggregations