Package com.calclab.emite.xtesting

Examples of com.calclab.emite.xtesting.XmppSessionTester


  private XmppSessionTester session;
  private RoomChatManager manager;

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


      + "          name='Buy Shakespeare Stuff!'/>" + "    <item jid='en2fr.shakespeare.lit'" + "          name='French Translation Service'/>"
      + "  </query>" + "</iq>"));

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

    session.verifySent("<iq type='result' to='someone@domain' id='theId'/>");
  }

  @Before
  public void beforeTests() {
    session = new XmppSessionTester();
    roster = new XmppRosterImpl(new SimpleEventBus(), session);
  }
View Full Code Here

  private AvatarManager avatarManager;
  private XmppSessionTester session;

  @Before
  public void aaaCreateManager() {
    session = new XmppSessionTester();
    avatarManager = new AvatarManager(new SimpleEventBus(), session);
  }
View Full Code Here

  private XmppSessionTester session;

  @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);
View Full Code Here

  public void beforeTests() {
    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

  private XmppSessionTester session;
  private VCardManager manager;

  @Before
  public void setup() {
    session = new XmppSessionTester("test@domain");
    manager = new VCardManagerImpl(new SimpleEventBus(), session);
  }
View Full Code Here

  String retriveData = "<iq type=\"get\"><query xmlns=\"jabber:iq:private\"><exodus xmlns=\"exodus:prefs\"/></query></iq>";
  String retrieveResponse = "<iq type=\"result\" from=\"hamlet@shakespeare.lit/denmark\" to=\"hamlet@shakespeare.lit/denmark\"> <query xmlns=\"jabber:iq:private\"><exodus xmlns=\"exodus:prefs\"><defaultnick>Hamlet</defaultnick></exodus></query></iq>";

  @Before
  public void setup() {
    session = new XmppSessionTester("test@domain");
    manager = new PrivateStorageManagerImpl(session);
  }
View Full Code Here

  private PresenceManager manager;
  private XmppSessionTester session;

  @Before
  public void beforeTest() {
    session = new XmppSessionTester();
    final SessionReady sessionReady = new SessionReady(session);
    manager = new PresenceManagerImpl(new SimpleEventBus(), session, sessionReady);
  }
View Full Code Here

  private MessageSentTestHandler sentHandler;

  @Before
  public void beforeTests() {
    eventBus = new SimpleEventBus();
    session = new XmppSessionTester();
    properties = new ChatProperties(CHAT, ME, ChatStatus.ready);
    chat = new PairChat(eventBus, session, properties);
    beforeSendHandler = new BeforeMessageSentTestHandler();
    chat.addBeforeMessageSentHandler(beforeSendHandler);
    sentHandler = new MessageSentTestHandler();
View Full Code Here

TOP

Related Classes of com.calclab.emite.xtesting.XmppSessionTester

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.