Package jetbrains.communicator.util

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


    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

      }
    });

    self.sendXmlMessage(message);

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

    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

  }

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

    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

    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

    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

  }

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

    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

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.