Examples of WaitFor


Examples of jetbrains.communicator.util.WaitFor

    CodePointer pointer = new CodePointer(0, 1);
    VFile file = VFile.create("path");

    self.sendCodeIntervalPointer(file, pointer, "comment���< && 53", testCase.getBroadcaster());

    new WaitFor(2000) {
      @Override
      protected boolean condition() {
        return log[0].length() > 0;
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

    String comment = "SS��� messa&&ge";
    whenSent[0] = System.currentTimeMillis();
    self.sendMessage(comment, testCase.getBroadcaster());

    new WaitFor(500) {
      @Override
      protected boolean condition() {
        return log[0].length() > 0;
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

      }
    });

    self.sendXmlMessage(message);

    new WaitFor(500) {
      @Override
      protected boolean condition() {
        if (checkResponse) {
          return log[0].endsWith("gar");
        }
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

    myUserMonitorThread = new UserMonitorThread(new MulticastPingThread[]{myMulticastThread},
        (UserMonitorClient) myUserMonitorClientMock.proxy(), WAIT_USER_RESPONSES_TIMEOUT);
    myUserMonitorThread.start();

    triggerFind();
    new WaitFor() { @Override
                    protected boolean condition() { return started[0]; } };
  }
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

  }

  @Override
  protected void tearDown() throws Exception {
    myUserMonitorThread.shutdown();
    new WaitFor(5000) {
      @Override
      protected boolean condition() {
        return !myUserMonitorThread._isAlive();
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

    expectSetOneOnlineUser();

    assertTrue("Should be finding", myUserMonitorThread.isFinding());
    Thread.sleep(myUserMonitorThread.getWaitUserResponsesTimeout());

    new WaitFor(1000) {
      @Override
      protected boolean condition() {
        return !myUserMonitorThread.isFinding();
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

    assertTrue("Should be online by default", myTransport.isOnline());

    myTransport.setOwnPresence(new UserPresence(false));
    assertFalse("Should become offline", myTransport.isOnline());

    new WaitFor(1000) {
      @Override
      protected boolean condition() {
        return !mySelf.isOnline();
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

    System.setProperty(UserMonitorThread.SCAN_TIMEOUT_PROPERTY, ""); // seconds


    myUserMonitorThread.triggerFindNow();
    new WaitFor() { @Override
                    protected boolean condition() { return started[0]; } };
    myUserMonitorClientMock.expects(once()).method("setOnlineUsers").with(eq(Collections.emptySet()));

    new WaitFor(myUserMonitorThread.getWaitUserResponsesTimeout() + 100) {
      @Override
      protected boolean condition() {
        return !myUserMonitorThread.isFinding();
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

  }

  @Override
  protected void tearDown() throws Exception {
    myUserMonitorThread.shutdown();
    new WaitFor(5000){
      @Override
      protected boolean condition() {
        return !myUserMonitorThread._isAlive();
      }
    };
View Full Code Here

Examples of jetbrains.communicator.util.WaitFor

    return null;
  }

  private boolean rosterIsNotAvailable(final XMPPConnection connection) {
    new WaitFor(3000) {
      protected boolean condition() {
        return connection.getRoster() != null;
      }
    };
    return connection.getRoster() == null;
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.