Package jetbrains.communicator.ide

Examples of jetbrains.communicator.ide.SendMessageEvent


    return vFile.getContents();
  }

  @Override
  public void sendMessage(final String message, EventBroadcaster eventBroadcaster) {
    eventBroadcaster.doChange(new SendMessageEvent(message, this), new Runnable() {
      @Override
      public void run() {
        sendXmlMessage(new TextXmlMessage(message));
      }
    });
View Full Code Here


    MockTransport mockTransport = new MockTransport();

    MockMessage localMessage = new MockMessage();
    MockMessage localMessage1 = new MockMessage();
    myIdeFacade.setReturnedMessage(localMessage);
    getBroadcaster().fireEvent(new SendMessageEvent("text", myUser));

    myIdeFacade.setReturnedMessage(localMessage1);
    getBroadcaster().fireEvent(new SendMessageEvent("text", myUser));

    LocalMessage[] history = myDispatcher.getHistory(myUser, null);
    assertEquals("Expect localMessages as a result to OwnMessageEvent",
        2, history.length);
    assertSame(localMessage, history[0]);
View Full Code Here

    myFacade = new IDEAFacade();
    myUser = UserImpl.create("user", myTransport.getName());
  }

  public void testCreateLocalMessage_OutgoingMessage() throws Exception {
    LocalMessage outgoingEvent = myFacade.createLocalMessageForOutgoingEvent(new SendMessageEvent("message", myUser));
    assertTrue(outgoingEvent instanceof OutgoingLocalMessage);
  }
View Full Code Here

TOP

Related Classes of jetbrains.communicator.ide.SendMessageEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.