Package com.calclab.emite.xtesting.handlers

Examples of com.calclab.emite.xtesting.handlers.RosterRetrievedTestHandler


    assertSame(item, roster.getItemByJID(uri("romeo@example.net/RESOURCE")));
  }

  @Test
  public void shouldFireEventOnlyWhenRosterReady() {
    final RosterRetrievedTestHandler handler = new RosterRetrievedTestHandler();
    roster.addRosterRetrievedHandler(handler);

    shouldRequestRosterOnLogin();
    session.answerFailure(new IQ(Type.error));
    assertTrue(handler.isNotCalled());
  }
View Full Code Here


    assertTrue(handler.isNotCalled());
  }

  @Test
  public void shouldFireEventWhenRosterReady() {
    final RosterRetrievedTestHandler handler = new RosterRetrievedTestHandler();
    roster.addRosterRetrievedHandler(handler);

    shouldRequestRosterOnLogin();
    session.answerSuccess(serverRoster());
    assertTrue(handler.isCalledOnce());
  }
View Full Code Here

TOP

Related Classes of com.calclab.emite.xtesting.handlers.RosterRetrievedTestHandler

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.