Package jetbrains.communicator.ide

Examples of jetbrains.communicator.ide.NullProgressIndicator


        .with(eq(new HashSet(Arrays.asList(p2PUser))));
  }


  private static ProgressIndicator createProgressIndicator() {
    return new NullProgressIndicator();
  }
View Full Code Here


        .with(eq(new HashSet(Arrays.asList(p2PUser))));
  }


  private static ProgressIndicator createProgressIndicator() {
    return new NullProgressIndicator();
  }
View Full Code Here

    StringUtil.setMyUsername(null);
    super.tearDown();
  }

  public void testFindUsers() throws Exception {
    User[] users = myTransport.findUsers(new NullProgressIndicator());
    assertTrue("At least self should be found", users.length >= 1);
    User self = null;
    for (User user : users) {
      if (user.getName().equals(StringUtil.getMyUsername())) {
        self = user;
View Full Code Here

        eq(StringUtil.getMsg("ClearHistoryCommand.text"))
    ).will(returnValue(true));
    myIdeMock.expects(once()).method("runLongProcess").will(new CustomStub("runner") {
      @Override
      public Object invoke(Invocation invocation) throws Throwable {
        ((IDEFacade.Process) invocation.parameterValues.get(1)).run(new NullProgressIndicator());
        return null;
      }
    });

    myIdeMock.expects(once()).method("runOnPooledThread").will(new CustomStub("foo"){
View Full Code Here

    UserPresence presence = new UserPresence(PresenceMode.AWAY);
    assert presence.isOnline();
    myTransport.setOwnPresence(presence);

    // make sure that away status will be updated
    myTransport.findUsers(new NullProgressIndicator());
    assert PresenceMode.AWAY == self.getPresence().getPresenceMode();

    // Now, test itself. We go online and want this status to be updated almost immediately.
    myEvents.clear();
    addEventListener();
View Full Code Here

      return;
    }

    myUserFinder.registerForProject("kir@localhost");
    Thread.sleep(400);
    User[] users = myUserFinder.findUsers(new NullProgressIndicator());
    assertEquals(1, users.length);
    assertEquals("kir@localhost", users[0].getName());

  }
View Full Code Here

  @Override
  public void initializeProject(final String projectName, MutablePicoContainer projectLevelContainer) {
    getIdeFacade().runOnPooledThread(new Runnable() {
      @Override
      public void run() {
        User[] users = findUsers(new NullProgressIndicator());
        Set<User> ourUsers = new HashSet<User>();
        for (User user : users) {
          if (Arrays.asList(user.getProjects()).contains(projectName)) {
            ourUsers.add(user);
          }
View Full Code Here

TOP

Related Classes of jetbrains.communicator.ide.NullProgressIndicator

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.