Package jetbrains.communicator.core.transport

Examples of jetbrains.communicator.core.transport.MessageEvent


    EventsProcessor processor = new EventsProcessor((IDEtalkMessagesWindow) myMock.proxy(), myUserModel, localMessageDispatcher, null);
    disposeOnTearDown(processor);
  }

  public void testIncomingMessage_No_Tab_WithExpand() throws Exception {
    MessageEvent event = EventFactory.createMessageEvent(new MockTransport(), "bob", "text");

    myMock.expects(once()).method("expandToolWindow");
    myMock.expects(once()).method("newMessageAvailable").with(eq(myUserModel.createUser("bob", MockTransport.NAME)), eq(event));
    myMock.expects(once()).method("getWindow").will(returnValue(null));
View Full Code Here


  }

  public void testIncomingMessage_No_Tab_WithoutExpand() throws Exception {
    IdeaFlags.EXPAND_ON_MESSAGE.change(false);

    MessageEvent event = EventFactory.createMessageEvent(new MockTransport(), "bob", "text");
    myMock.expects(once()).method("newMessageAvailable").with(eq(myUserModel.createUser("bob", MockTransport.NAME)), eq(event));
    myMock.expects(once()).method("getWindow").will(returnValue(null));

    getBroadcaster().fireEvent(event);
  }
View Full Code Here

TOP

Related Classes of jetbrains.communicator.core.transport.MessageEvent

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.