use of jetbrains.communicator.mock.MockIdeaMessage in project intellij-plugins by JetBrains.
the class UserTreeTest method testDeliverLocalMessage.
public void testDeliverLocalMessage() throws Exception {
MockIdeaMessage message = new MockIdeaMessage();
myLocalMessageDispatcher.addPendingMessage(myUser, message);
MouseEvent mouseEvent = createMouseEvent();
myUserTree.onClick(myTreePath, myTreePath.getLastPathComponent(), mouseEvent);
verifyMessageDelivery();
}
use of jetbrains.communicator.mock.MockIdeaMessage in project intellij-plugins by JetBrains.
the class UserTreeTest method testDoubleClickEventsInQueue.
public void testDoubleClickEventsInQueue() throws Exception {
MockIdeaMessage message = new MockIdeaMessage();
myLocalMessageDispatcher.addPendingMessage(myUser, message);
MouseEvent mouseEvent = createMouseEvent();
myUserTree.onClick(myTreePath, myTreePath.getLastPathComponent(), mouseEvent);
myUserTree.onDblClick(myTreePath, myTreePath.getLastPathComponent(), mouseEvent);
verifyMessageDelivery();
}
use of jetbrains.communicator.mock.MockIdeaMessage in project intellij-plugins by JetBrains.
the class UserTreeTest method testDoubleClick_AfterDelivery.
public void testDoubleClick_AfterDelivery() throws Exception {
MockIdeaMessage message = new MockIdeaMessage();
myLocalMessageDispatcher.addPendingMessage(myUser, message);
MouseEvent mouseEvent = createMouseEvent();
myUserTree.onClick(myTreePath, myTreePath.getLastPathComponent(), mouseEvent);
myUserTree.onDblClick(myTreePath, myTreePath.getLastPathComponent(), mouseEvent);
verifyMessageDelivery();
myUserTree.onClick(myTreePath, myTreePath.getLastPathComponent(), mouseEvent);
myUserTree.onDblClick(myTreePath, myTreePath.getLastPathComponent(), mouseEvent);
assertTrue("Should invoke send message dialog when nothing to deliver", mySendMessageInvoked);
}
Aggregations