Package com.calclab.emite.xep.muc

Examples of com.calclab.emite.xep.muc.RoomChatManagerImpl


  private RoomChatManager manager;

  @Before
  public void beforeTests() {
    session = new XmppSessionTester(USER);
    manager = new RoomChatManagerImpl(new SimpleEventBus(), session, new RoomChatSelectionStrategy());
  }
View Full Code Here


  public void beforeTests() {
    eventBus = new SimpleEventBus();
    userURI = uri("user@domain/res");
    roomURI = uri("room@domain/nick");
    session.setLoggedIn(userURI);
    final RoomChatManagerImpl manager = new RoomChatManagerImpl(eventBus, session, new RoomChatSelectionStrategy());
    final ChatProperties properties = new ChatProperties(roomURI, userURI, null);
    room = (RoomChatImpl) manager.openChat(properties, true);
  }
View Full Code Here

    eventBus = new SimpleEventBus();
    userUri = XmppURI.uri("user@domain/resource");
    roomUri = XmppURI.uri("room@conference.domain");
    occupantUri = XmppURI.uri("room@conference.domain/user");
    session = new XmppSessionTester(userUri);
    final RoomChatManagerImpl manager = new RoomChatManagerImpl(eventBus, session, new RoomChatSelectionStrategy());
    room = manager.open(roomUri);
    room.getProperties().setStatus(ChatStatus.ready);
  }
View Full Code Here

  public void beforeTest() {
    userURI = uri("user@domain/res");
    roomURI = uri("room@domain/user");
    eventBus = new SimpleEventBus();
    session = new XmppSessionTester(userURI);
    manager = new RoomChatManagerImpl(eventBus, session, new RoomChatSelectionStrategy());
    room = manager.open(roomURI);
  }
View Full Code Here

    assertTrue(handler.isCalledOnce());
  }

  @Override
  protected RoomChatManager createChatManager() {
    return new RoomChatManagerImpl(new SimpleEventBus(), session, new RoomChatSelectionStrategy());
  }
View Full Code Here

TOP

Related Classes of com.calclab.emite.xep.muc.RoomChatManagerImpl

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.