Package com.calclab.emite.xtesting.handlers

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


    verify(bindingManager).bindResource(anyString());
  }

  @Test
  public void shouldLoginWhenSessionCreated() {
    final SessionStateChangedTestHandler handler = new SessionStateChangedTestHandler();
    session.addSessionStatusChangedHandler(false, handler);
    eventBus.fireEvent(new SessionRequestResultEvent(uri("me@domain")));
    assertSame(SessionStatus.loggedIn, handler.getLastSessionStatus());
  }
View Full Code Here


    assertTrue(handler.isCalledOnce());
  }

  @Test
  public void shouldEventStateChanges() {
    final SessionStateChangedTestHandler handler = new SessionStateChangedTestHandler();
    session.addSessionStatusChangedHandler(false, handler);
    session.setStatus(SessionStatus.ready);
    assertSame(SessionStatus.ready, handler.getLastSessionStatus());
  }
View Full Code Here

TOP

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

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.