Package jetbrains.communicator.util

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


    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

        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

    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

      super(successfulDelivery);
      myLog1 = log;
    }

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

    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

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

  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

Related Classes of jetbrains.communicator.util.WaitFor

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.