Examples of WaitFor


Examples of jetbrains.communicator.util.WaitFor

    myFacade.getConnection().getRoster().setSubscriptionMode(Roster.SubscriptionMode.accept_all);
    final JabberFacadeImpl another = new JabberFacadeImpl(myIDEFacade);
    createGoodAccount("ddd" + System.currentTimeMillis(), another);

    another.addUsers("group", Arrays.asList(me));
    new WaitFor(3000) {
      @Override
      protected boolean condition() {
        return another.getConnection().getRoster().getPresence(me) != null;
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

    myUser = new MockUser("user", null);
    myUser.setOnline(true);

    myDispatcher = new AsyncMessageDispatcherImpl(getBroadcaster(), myIdeFacade);

    new WaitFor(1000) {
      @Override
      protected boolean condition() {
        return myDispatcher.isRunning();
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

        myDispatcher.getUsersWithMessages().length);
  }

  private void triggerMessageProcessing(final NotifyableMessage mockMessage) {
    mockMessage.triggerProcess();
    new WaitFor(10000) {
      @Override
      protected boolean condition() {
        return !myDispatcher.isMessageDispatchInProgress();
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

    assertEquals("Messages not delivered yet", 2,
        myDispatcher.getUsersWithMessages().length);

    triggerMessageProcessing(mockMessage);

    new WaitFor(200) {
      @Override
      protected boolean condition() {
        return myDispatcher.getUsersWithMessages().length == 0;
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

      super(successfulDelivery);
      myLog1 = log;
    }

    public void waitUntilDispatchingStarted() {
      new WaitFor(10000) {
        @Override
        protected boolean condition() {
          return myDispatchingStarted;
        }
      };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

    assertEquals(PresenceMode.EXTENDED_AWAY, myTransport.getPresence().getPresenceMode());
  }

  private void startThread() {
    myThread.start();
    new WaitFor(500) {
      @Override
      protected boolean condition() {
        return myTransport.getPresence() != null;
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

  private void doStart() {
    BuiltInServerManager.getInstance().waitForStart();
    myUserMonitorThread.start();
    myUserMonitorThread.triggerFindNow();
    new WaitFor() {
      @Override
      protected boolean condition() {
        return myUserMonitorThread.isRunning();
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

  private void startupMulticastThreads() {
    for (MulticastPingThread multicastThread : myMulticastThreads) {
      multicastThread.start();
    }
    new WaitFor(Time.SECOND) {
      @Override
      protected boolean condition() {
        for (MulticastPingThread multicastThread : myMulticastThreads) {
          if (!multicastThread.isStarted()) return false;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.