Package com.google.web.bindery.event.shared

Examples of com.google.web.bindery.event.shared.SimpleEventBus


  private EventBus eventBus;
  private RosterGroup group;

  @Before
  public void setup() {
    eventBus = new SimpleEventBus();
    group = new RosterGroup(eventBus, "myGroup");
    group.add(RosterItemHelper.createItem("test3@test", "test3", false, "myGroup"));
    group.add(RosterItemHelper.createItem("test2@test", "test2", true, "myGroup"));
    group.add(RosterItemHelper.createItem("test1@test", "test1", false, "myGroup"));
  }
View Full Code Here


  protected final EventBus eventBus;
  protected final XmppSessionTester session;
  protected static final XmppURI USER_URI = uri("self@domain/res");

  public AbstractChatTest() {
    eventBus = new SimpleEventBus();
    session = new XmppSessionTester();
  }
View Full Code Here

  private EventBus eventBus;

  @Before
  public void beforeTests() {
    session = new XmppSessionTester();
    eventBus = new SimpleEventBus();
    roster = mock(XmppRoster.class);
    manager = new SubscriptionManagerImpl(eventBus, session, roster);
    session.login(uri("user@local"), "anything");
  }
View Full Code Here

  @Before
  public void beforeTests() {
    me = XmppURI.uri("me@domain");
    session = new XmppSessionTester();
    session.setLoggedIn(me);
    roster = new XmppRosterImpl(new SimpleEventBus(), session);
  }
View Full Code Here

    assertTrue(handler.isCalledOnce());
  }

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

  protected AuthorizationResultEvent authEvent;

  @Before
  public void beforeTests() {
    connection = new XmppConnectionTester();
    manager = new SASLManager(new SimpleEventBus(), connection);
    authEvent = null;
   
    manager.addAuthorizationResultHandler(new AuthorizationResultEvent.Handler() {
      @Override
      public void onAuthorizationResult(final AuthorizationResultEvent event) {
View Full Code Here

  private final ServicesTester services;
  private final XmppConnectionBosh connection;

  public XmppBoshConnectionTests() {
    services = new ServicesTester();
    connection = new XmppConnectionBosh(new SimpleEventBus());
  }
View Full Code Here

    @Produces
    @ApplicationScoped
    EventBus produceEventBus() {
        if ( tempBus == null ) {
            tempBus = new SimpleEventBus();
        }
        return tempBus;
    }
View Full Code Here

public class CountingEventBus extends EventBus {
  private final Map<Type<?>, Integer> counts = new HashMap<Event.Type<?>, Integer>();
  private final EventBus wrapped;

  public CountingEventBus() {
    this(new SimpleEventBus());
  }
View Full Code Here

TOP

Related Classes of com.google.web.bindery.event.shared.SimpleEventBus

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.