Package jetbrains.communicator.core.dispatcher

Examples of jetbrains.communicator.core.dispatcher.LocalMessage


    super.addPendingMessage(user, message);
  }

  @Override
  public Icon getBlinkingIcon() {
    LocalMessage localMessage = getMessageWhichRequireIconBlinking();
    if (localMessage != null) {
      return localMessage.getMessageIcon(0);
    }
    return null;
  }
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

    assertTrue(outgoingEvent instanceof OutgoingLocalMessage);
  }

  public void testCreateLocalMessage_OutgoingCodePointer() throws Exception {
    SendCodePointerEvent event = new SendCodePointerEvent("message", VFile.create("a path"), new CodePointer(3,4), myUser);
    LocalMessage outgoingEvent = myFacade.createLocalMessageForOutgoingEvent(event);
    assertTrue(outgoingEvent instanceof OutgoingCodePointerLocalMessage);
  }
View Full Code Here

  public void testCreateLocalMessage_IncomingMessage() throws Exception {
    TransportEvent event =
        EventFactory.createMessageEvent(myTransport, "user", "comment123");
    Date when = new Date();
    event.setWhen(when.getTime());
    LocalMessage localMessage = myFacade.createLocalMessageForIncomingEvent(event);

    assertTrue("instance of Stacktracelocalmessage expected:" + localMessage.getClass().getName() ,
        localMessage instanceof IncomingLocalMessage);
    assertEquals("comment123", ((BaseLocalMessage) localMessage).getComment());
    assertEquals(when, localMessage.getWhen());
  }
View Full Code Here

  }

  public void testCreateLocalMessage_Stacktrace() throws Exception {
    TransportEvent event =
        EventFactory.createStacktraceEvent(myTransport, "user", "stacktrace", "comment123");
    LocalMessage localMessage = myFacade.createLocalMessageForIncomingEvent(event);

    assertTrue("instance of Stacktracelocalmessage expected",
        localMessage instanceof IncomingStacktraceMessage);
    assertEquals("comment123", ((BaseLocalMessage) localMessage).getComment());
  }
View Full Code Here

  }

  public void testCreateLocalMessage_CodeInterval() throws Exception {
    TransportEvent event =
        EventFactory.createCodePointerEvent(myTransport, "user22", VFile.create("a path"), 0, 0, 1, 2, "some comment1");
    LocalMessage localMessage = myFacade.createLocalMessageForIncomingEvent(event);

    assertTrue("instance of IncomingCodePointerMessage expected:" + localMessage,
        localMessage instanceof IncomingCodePointerMessage);
    assertEquals("some comment1", ((BaseLocalMessage) localMessage).getComment());
  }
View Full Code Here

TOP

Related Classes of jetbrains.communicator.core.dispatcher.LocalMessage

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.