Examples of PairChatManagerImpl


Examples of com.calclab.emite.im.chat.PairChatManagerImpl

  @Before
  public void beforeTests() {
    final EventBus eventBus = new SimpleEventBus();
    session = new XmppSessionTester();
    chatManager = new PairChatManagerImpl(eventBus, session, new PairChatSelectionStrategy());
    session.setLoggedIn(MYSELF);
    final ChatStateManager stateManager = new ChatStateManager(eventBus, chatManager);
    chat = chatManager.open(OTHER);
    chatStateHook = stateManager.getChatState(chat);
    stateHandler = new ChatStateChangedTestHandler();
View Full Code Here

Examples of com.calclab.emite.im.chat.PairChatManagerImpl

    assertEquals(ChatStatus.ready, chat.getStatus());
  }

  @Override
  protected PairChatManagerImpl createChatManager(final XmppSessionTester session2) {
    return new PairChatManagerImpl(new SimpleEventBus(), session, new PairChatSelectionStrategy());
  }
View Full Code Here

Examples of com.calclab.emite.im.chat.PairChatManagerImpl

  private PairChat pairChat;

  @Before
  public void beforeTests() {
    session.setLoggedIn(USER_URI);
    final PairChatManagerImpl manager = new PairChatManagerImpl(eventBus, session, new PairChatSelectionStrategy());
    final ChatProperties properties = new ChatProperties(CHAT_URI, USER_URI, ChatStatus.ready);
    pairChat = manager.openChat(properties, true);
    pairChat.setThread("theThread");
  }
View Full Code Here

Examples of com.calclab.emite.im.chat.PairChatManagerImpl

    assertTrue(handler.isCalledOnce());
  }

  @Override
  protected PairChatManager createChatManager() {
    final PairChatManager chatManagerDefault = new PairChatManagerImpl(new SimpleEventBus(), session, new PairChatSelectionStrategy());
    return chatManagerDefault;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.