Package org.eclipse.ecf.presence.chatroom

Examples of org.eclipse.ecf.presence.chatroom.IChatRoomInvitationSender


    invitationsReceived.clear();
    disconnectClients();
  }

  public void testSendInvitation() throws Exception {
    final IChatRoomInvitationSender invitationSender = chat0.getInvitationSender();
    assertNotNull(invitationSender);
    final IChatRoomInfo roomInfo = chat0.getChatRoomInfo(CHAT_ROOM_NAME);
    if (roomInfo == null) return;
    final IChatRoomContainer chatRoomContainer = roomInfo.createChatRoomContainer();
    chatRoomContainer.connect(roomInfo.getRoomID(), null);
    invitationSender.sendInvitation(roomInfo.getRoomID(), getClient(1).getConnectedID(), null, "this is an invitation");
    try {
      synchronized (synchObject) {
        synchObject.wait(WAITTIME);
      }
    } catch (final Exception e) {
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.presence.chatroom.IChatRoomInvitationSender

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.